On an HTML page, I have a checkbox with the name property. I can't uncheck it with the name attribute.
HTML :
<input type="checkbox" value="1" name="show_static_notify">
jQuery :
$("input[name='show_static_notify']:checkbox:not(:checked)");
Use .prop()
$("input[name='show_static_notify']:checkbox").prop('checked',false);
Fiddle Demo
what you are doing is to find the unchecked checkbox with given name
To uncheck the checkbox, use .prop()
$("input[name='show_static_notify']").prop('checked', false);
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With