I have a problem with unchecking a checkbox. Have a look at my jsFiddle, where I am attempting:
checkbox
$(\"#check2\").attr(\"checked\", true); <
$(\"#check2\").attr(\"checked\", true);
$("#chkBox").attr('checked', false);
This worked for me, this will uncheck the check box. In the same way we can use
$("#chkBox").attr('checked', true);
to check the checkbox.