Keywords: form bind change onchange ie problem ie6 ie7 jquery
Friday, 7 August 2009
I went looking for this and found it unanswered so–
$("form").bind("change", function(){ /* do something */ });
That works on everything but the IE family of browsers. Changes are not propagated up through to the form I guess. This will fix the problem–
$("form *").bind("change", function(){ /* do something */ });
Just bind to all the possible pieces of the form and look for changes directly there.
« jQuery to make a preview pane of a textfield
« JavaScript samples and snippets »
