So was having issues as in why does my checkbox doesn’t work in IE when I do
|
1 2 3 |
$(‘.checkbox’).live(‘change’, function() { alert(‘Checkbox clicked’); }); |
And found out that jquery does not bind live “change” events, I was told that it works in 1.4.2 but for some reason I still was not able to get it working.
The solution that I found was to use the livequery or bind method thus the code would become
|
1 2 3 |
$(‘.checkbox’).bind(‘change’, function() { alert(‘Checkbox clicked’); }); |
or if you are using Ajax then
|
1 2 3 |
$(‘.checkbox’).livequery(‘change’, function() { alert(‘Checkbox clicked’); }); |
That should do the trick, remember to add jquery.livequery.js if you are using livequery in your file.

Leave a Reply