I have the following markup and I want to set the All switch.
<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 would like to map an attribute through an attribute, but I need to combine 2 attributes, @name='Foo' and @value='All' .
Something like that:
$("input[@name='Foo' @value='all']").attr('checked','checked');
Can anyone show how this can be done?
jquery html jquery-selectors
zadam 01 Oct '08 at 2:21 2008-10-01 02:21
source share