title: get anchor with a specific text inside li using Jquery
body: <p>I have the following html code </p>
  
  <pre><code>&lt;ul id="selector"&gt;
    &lt;li&gt; &lt;a&gt; first &lt;/a&gt; &lt;/li&gt;
    &lt;li&gt; &lt;a&gt; Second &lt;/a&gt; &lt;/li&gt;
  &lt;/ul&gt;
  </code></pre>
  
  <p>I want to get the anchor with specific text and trigger a click event on it.</p>
  
  <pre><code>$("#selector li").find('a').contains('first').click()
  </code></pre>
  
  <p>Error : </p>
  
  <pre><code>$(...).find(...).contains is not a function
  </code></pre>