SyntaxFix
Write A Post
Hire A Developer
Questions
There is another way to do this:
//elem - get the checkbox element and then elem.setAttribute('checked', 'checked'); //check elem.removeAttribute('checked'); //uncheck