TOP
EN EL
Forms - Checkboxes - Check / Uncheck checkbox
25 August 2024 Published by Aristotelis Pitaridis
Tools used for this tutorial
jQuery 3.7.1
SHARE

The following lines demonstrate how to check or uncheck a checkbox.

$('#myCheckbox').prop('checked', true);    // Check it
$('#myCheckbox').prop('checked', false);   // Uncheck it