I have a button that checks all checkboxes in a div and un-checks.
However if I were to manually check one checkbox, then hit the Check all button and then uncheck all, the checkbox which was manually checked does not become unchecked!
Any ideas?
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.
Thats because jQuery was changed in 1.6
Using
attrinstead ofpropis what is breaking it.Try using
propinsteadUpdated fiddle: http://jsfiddle.net/hM5bu/2/
See this question: .prop() vs .attr() for more about
propandattrin jQuery 1.6