For setting “checked” for a checkbox with jQuery if you're working with just one element, you can always just modify the HTMLInputElement's .checked property below is the code for the same:-
$('.myCheckbox')[0].checked = true;
$('.myCheckbox')[0].checked = false;