I do not know the correct terminology for this, but I want the same effect as onclick but for a check box with jquery or javascript.
onclick version:
$('input:checked').click(function() { //do something });
See http://api.jquery.com/checked-selector/ and http://api.jquery.com/checkbox-selector/