$('#comment-form-subscribe input:checkbox:not(:checked)').prop("checked", true);
If checkboxes are unchecked, manually check them, but this doesn’t seem to be working.
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 might have a selector issue: I’d check that the length of the jQuery object returned isn’t 0. This is what I typically use:
EDIT: as @nbrooks pointed out,
:inputis deprecated. This might work: