We will use a checkbox with ID “myCheckbox” in this example

First to check a checkbox using JQuery use the following code, remember to replace “myCheckbox” with the ID of your checkbox

$('#myCheckbox').attr('checked','checked');

To un-check the checkbox use the following JQuery code, remember to replace “myCheckbox” with the ID of your checkbox

$('#myCheckbox').removeAttr('checked');