title: jQuery: select tr's where td's meeting multiple criterias
body: <p>I was wondering, whether it's possible to select <code>&lt;tr&gt;</code>'s from a <code>&lt;table&gt;</code> where <code>&lt;td&gt;</code>'s meets multiple conditions. For example (see sample table at the end ):</p>
  
  <blockquote>
    <p>Get all <code>&lt;tr&gt;</code>'s where first column is "Audi" <strong>AND</strong> second column is
    "red"</p>
  </blockquote>
  
  <p>I've allready find out how to filter by one collumn:</p>
  
  <pre><code>$('tr:has(td:nth-child(1):contains("Audi"))').doSomeThing();
  </code></pre>
  
  <p>But my problem is how to filter with an <strong>AND</strong> condition like:</p>
  
  <pre><code>$('tr:has(td:nth-child(1):contains("Audi") &amp;&amp; td:nth-child(2):contains("red"))').doSomeThing();
  </code></pre>
  
  <p>I know that there is the <a href="http://api.jquery.com/multiple-attribute-selector/" rel="nofollow">Multiple Attribute Selector</a>, but since i'm searching for the .text() property it's not apropriate for my problem.</p>
  
  <p>My sample table:</p>
  
  <pre><code>&lt;table id="list"&gt;
  &lt;tr&gt;
      &lt;td&gt;Audi&lt;/td&gt;
      &lt;td&gt;red&lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
      &lt;td&gt;Audi&lt;/td&gt;
      &lt;td&gt;yellow&lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
      &lt;td&gt;Audi&lt;/td&gt;
      &lt;td&gt;green&lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
      &lt;td&gt;BMW&lt;/td&gt;
      &lt;td&gt;red&lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
      &lt;td&gt;BMW&lt;/td&gt;
      &lt;td&gt;yellow&lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
      &lt;td&gt;BMW&lt;/td&gt;
      &lt;td&gt;green&lt;/td&gt;
  &lt;/tr&gt;
      ...
  &lt;/table&gt;
  </code></pre>
  
  <p>Thanx for your help!</p>