I was wondering if it was possible to reset all the checkboxes (mark them unchecked) on the page without looping using jQuery?
Share
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.
You can use a single selector to find all the checked checkboxes, and remove the ‘checked’ attribute from them. jQuery will do this internally by looping, but you will not have to write a loop yourself:
See the
:checkboxand:checkedselectors.