I have the following markup, and I want to make the 'All' radio button checked.
<ul>
<li><input type="radio" value="All" name="Foo" />All</li>
<li><input type="radio" value="New" name="Foo" />New</li>
<li><input type="radio" value="Removed" name="Foo" />Removed</li>
<li><input type="radio" value="Updated" name="Foo" />Updated</li>
</ul>
I'd like to do it via attribute match, but I need to match on 2 attributes, @name='Foo' and also @value='All'
Something like this, (although it doesn't work):
$("input[@name='Foo' @value='all']).attr('checked','checked');
Can someone show how this can be done?