Tools used for this tutorial
jQuery 3.7.1
The following lines demonstrate how to check or uncheck a checkbox.
$('#myCheckbox').prop('checked', true); // Check it
$('#myCheckbox').prop('checked', false); // Uncheck it