Problem with jQuery 1.2.2/FF2/many click handlers
Hi,
I have a form with 2954 radio buttons in a table with 211 rows. I use
jQuery to attach a click handler to each radio. This works fine with
jQuery 1.2.1 and Firefox 2.0.0.12 on Mac OSX 10.4 but with jQuery 1.2.2
and 1.2.3 there is a problem:
When the form is opened in Firefox, everything is fine at first but
reloading the form, or going to another page, is very slow and uses 100%
CPU.
My guess is that jQuery is removing all the event handlers and that
there was a change in how that works between 1.2.1 and 1.2.2.
I have a stripped-down test page to show the problem at
http://blogcosm.com/media/jquery_test/jquery_test.html
Loading the page once works fine, reloading it or going to another page
is very slow. If I comment out the line,
$('input', this).click(handleRadio);
then it is fast (though of course the handlers don't work).
I would welcome suggestions of another way to do this or a fix to jQuery.
Thanks and apologies if I am posting to the wrong list,
Kent