I\'m using Jquery\'s toggle event to do some stuff when a user clicks a checkbox, like this:
$(\'input#myId\').toggle( function(){ //do stuff }, function()
$('input#myId').toggle( function(e){ e.preventDefault(); //do stuff $(this).attr('checked', 'true'); }, function(e){ e.preventDefault(); //do other stuff $(this).attr('checked', 'false'); } );