Is there a way in JQuery to check checkboxes based on their value.
e.g. if I have 3 checkboxes with the value 'test' is there any way I can check them all based just on the fact that they have the value 'test'
Is there a way in JQuery to check checkboxes based on their value.
e.g. if I have 3 checkboxes with the value 'test' is there any way I can check them all based just on the fact that they have the value 'test'
$(":checkbox[value=test]").attr("checked", true);
See: