Is it possible to select all the checkboxes except those that have a particular class?
$(':checkbox')
This selects all checkboxes but I have some I don’t want to get in the selection.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Use the
notmethod, or the:notselector:Where
noSelectis the class you want excluded.NB for optimal speed (enhancing for
querySelectorAll), you code should probably look like this: