A more complete example is to avoid a long message flow in How to check if a checkbox is selected in jQuery? .
HTML
<input id="your_id" name="your_name" value="your_value" type="checkbox">
If necessary, add the attribute 'checked', which by default will be set at boot.
<input id="your_id" name="your_name" value="your_value" type="checkbox" checked>
Javascript
$('#your_id').is(':checked')
eg.
if ($('#your_id').is(':checked')) {
wolfstevent Feb 21 '14 at 15:32 2014-02-21 15:32
source share