Keywords: form bind change onchange IE Internet Explorer problem IE6 IE7 jQuery

Published · Friday, 7 August 2009 (Updated · 8 June 2020)

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.

digg stumbleupon reddit Fark Technorati Faves

« jQuery to make a preview pane of a textfield
« JavaScript samples and snippets »