[jQuery] Select box change event infinite loop in ASP.NET

[jQuery] Select box change event infinite loop in ASP.NET


I have a simple function to capture the OnChange event of a drop-down
select box. In MSIE, it works as expected, but Firefox gets caught in
an infinite loop. Has anyone else seen this problem? I have a counter
to track the problem. In MSIE, the counter goes up by 1 for every
change. In Firefox, the counter jumps by 21 with every change. I guess
21 is some recursive limit inside of Firefox.
jQuery 1.1.2 and ASP.NET 2.0.
var count=0;
$(document).ready(function() {
var selectBox = "$<%= Me.FormView1.ClientId %>_ddlTestList";
$(selectBox).change(
function() {
count = count + 1;
$("#countId").text("count: " + count);
}
);
});
Thank you,
Mike Chabot