How can I remove the "disabled='disabled' attribute of submit button with id='bla' if at least one checkbox with class='check' is checked?
If no checkboxes are checked, the disabled attribute should return to the submit button.
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.
EDIT (11-01-2021) – As pointed out by @Janus Bahs Jacquet, as of jQuery 1.6.1, properties of elements should be manipulated using the
.prop()method instead of.attr()method.Updated demo : http://jsfiddle.net/kjb0fyr8/
You just need to check the
lengthproperty of the checked arrayHere’s the demo : http://jsfiddle.net/LUnN5/