Eric Pascarello wrote:Only use jQuery to add the event on document ready.
Eric
Eric Pascarello wrote:
sunil langeh wrote:and its start working in FireFox too, but the problem is that, all the boxes are not get checked on first click, its getting checked on 2 clicks
![]()
Because you are adding the click event AFTER you click!
* Click one adds the jQuery click
* click 2 adds the jQuery event again and calls the jQuery event added in click one
* click 3 adds the jQuery event and calls the jQuery event added in click one and calls the jQuery event added in click two
Eric