Date Tags JS

JS: checkbox state with JQuery

Check if the checkbox is checked =)

$('input').is(':checked')
$('input').attr('checked')

Changing the state of the checkbox:

$('input').attr('checked', true); // or false to uncheck

Comments

comments powered by Disqus