as an example: http://jsfiddle.net/nicaia/6cHxR/
Js code:
$('#checkbox_id').bind('change',function({ alert('change'); }).bind('click',function(event){ alert('click');event.preventDefault(); });
in the chrome box, check this box:
alert 'change' and alert 'click', and the checkbox will not be checked. (uncheck the box first.)
and in the firefox window, click this checkbox: alert 'click', and the checkbox will not be checked. (uncheck the box first.)
the change will not start in firefox. I do not know why. Can someone tell me?
thanks.
Bodil source share