I have a jQuery selector that looks like this ...
$("input:checkbox").click(function(event) {
// DO STUFF HERE
}
Everything was working well until I was asked to add another checkbox that has nothing to do with the original checkboxes. How do I create a selector for all checkboxes except for one? Thank you.
$('input:checkbox:not("#thatCheckboxId")').click(function(event) {
// DO STUFF HERE
}
Just give the checkbox in question a unique id=""
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