just like the example: http://jsfiddle.net/nicaia/6cHxR/
the js code:
$('#checkbox_id').bind('change',function({
alert('change');
}).bind('click',function(event){
alert('click');event.preventDefault();
});
in chrome click the checkbox will show this:
alert 'change' and alert 'click' and the checkbox will not be checked.(the checkbox is uncheck in first.)
and in firefox click the checkbox will show this: alert 'click' and the checkbox will not be checked.(the checkbox is uncheck in first.)
the change will not be triggered in firefox. i don't know why.somebody can tell me?
thanks.