tags:

views:

44

answers:

1

Hi,

i have many checkbox:

    <input type="checkbox" name="checkbox_user" value = "1"/>
    <input type="checkbox" name="checkbox_user" value = "2"/>   
    <input type="checkbox" name="checkbox_user" value = "3"/>
...

and checkbox with value 2 is selected. Is possible unselect checkbox (with jQuery) when i now only value.

+4  A: 
$("input:checkbox[value=2]").attr("checked", true);
jtbandes
Why do I never see you on SO? :)
Jacob Relkin
I answer things 5 minutes before you, like a ninja.
jtbandes
@jtbandes, You wouldn't want to meet me in a dark text editor :)
Jacob Relkin