I run some validation on my form when a checkbox is clicked, which works as intended.
$('#ilikeicecream').click(function(){
runValidation();
});
The checkbox also has a label element, so I need to check for that as well. My first instinct was to do the following:
$('#ilikeicecream-label').click(function(){
runValidation();
});
The problem is that the checkbox has not been checked at this point so validation does not work as intended. How can I get around this?