jQuery match multiple attributes
<p>I have the following markup, and I want to make the 'All' radio button checked.</p>

<pre><code>&lt;ul&gt;
&lt;li&gt;&lt;input type="radio"  value="All"  name="Foo"  /&gt;All&lt;/li&gt;
&lt;li&gt;&lt;input type="radio"  value="New"  name="Foo"  /&gt;New&lt;/li&gt;
&lt;li&gt;&lt;input type="radio"  value="Removed"  name="Foo"  /&gt;Removed&lt;/li&gt;
&lt;li&gt;&lt;input type="radio"  value="Updated"  name="Foo"  /&gt;Updated&lt;/li&gt;
&lt;/ul&gt;
</code></pre>

<p>I'd like to do it via attribute match, but I need to match on 2 attributes, @name='Foo' and also @value='All'</p>

<p>Something like this, (although it doesn't work):</p>

<pre><code>$("input[@name='Foo' @value='all']).attr('checked','checked');
</code></pre>

<p>Can someone show how this can be done?</p>
