js checkbox button code example
Example 1: javascript check uncheck checkbox
document.getElementById("myCheckBoxID").checked = true; // Check
document.getElementById("myCheckBoxID").checked = false;// Uncheck
Example 2: if checkbox is checked
if ($('#id_input').is(':checked')) { }