jquery in checkbox checked
snippet in javascript

check a checkbox jquery

user2608

$('#grepperRocks').prop('checked', true);

jquery in checkbox checked

user3074

// Check a checkbox
$(selector).prop('checked', true);
// Un-check a checkbox
$(selector).prop('checked', false);
// Determine if checked or not
isChecked = $(selector).prop('checked');