Jquery: change event not triggered in IE

Posted by Kenneth on Stack Overflow See other posts from Stack Overflow or by Kenneth
Published on 2010-05-28T08:56:03Z Indexed on 2010/05/29 10:12 UTC
Read the original article Hit count: 202

Hi,

I have some code updating a dropdownlist, and then I fire the "change" event manually. It works like it should in firefox, opera and so on, but not in Internet Explorer. Any idea why?

Code attached below.

$(".bringFraktvalgRadio").click(function() {
    var selectedValue = $(".bringFraktvalgRadio:checked").val();
    $("#<%= dropDeliveryOption.ClientID %> option[value=" + selectedValue + "]").attr("selected", true);
    $("#<%= dropDeliveryOption.ClientID %>").trigger("change");
});

© Stack Overflow or respective owner

Related posts about jQuery

Related posts about internet-explorer