Saturday, April 10, 2010

Why jQuery change() don't work in IE

In latest jQuery version change() event don't work in IE , on radio buttons for example , or checkboxes.This happens cause DOM is updated dynamically inIE using AJAX.So the general advice is :

Use click() function instead!
or
Try to bind change() event using new jQuery live :

$("#checkbox").live("change",function() {
    alert("checkbox triggered");
}

Where checkbox is the id of your <.input type = "checkbox" id = "checkbox">

Labels: , ,

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home