title: How to find elements that match multiple conditions
body: <p>What I need to do is find all a elements on the page
  that contain "tag" in the href property and the text of the element contains certain word.</p>
  
  <p>For example </p>
  
  <pre><code>&lt;a href="/my/tag/item2"&gt;cars&lt;/a&gt;
  </code></pre>
  
  <p>I know I can get all a elements with tag in the href like this:</p>
  
  <pre><code>$("a[href*=tag]");
  </code></pre>
  
  <p>I can also find all a elements with 'cars' in the text like this:</p>
  
  <pre><code>$("a:contains('cars')");
  </code></pre>
  
  <p>But how do I combine these 2 conditions into a single statement that says:
  Find all a elements that contain 'tag' in the href and contain 'cars' in the text?</p>