Works in Firefox, but not in IE?
I would make sure that both browsers load the same source. Honestly, you cannot use it for Firefox .onwhen using jQuery 1.6, since the method does not exist.
In your console (F12 Developer Tools in IE and Firebug in Firefox), enter the following:
jQuery.fn.jquery
jQuery, . , StackOverflow "1.7.1". -, .on, , , :
!!jQuery.fn.on // True if .on is present, False otherwise
jQuery 1.6 .delegate, .on
jQuery 1.6, .on, jQuery 1.7. .delegate, jQuery (Microsoft CDN, Google CDN, jQuery CDN).
.delegate .on :
$("#dropdownval").delegate("select", "change", function(event){
alert( $(this).val() );
});
Fiddle: http://jsfiddle.net/jonathansampson/rMBn4/
...
.on, , document object - , , . , .delegate, - select:
$("#dropdownval").on("change", "select", function(event){
alert( $(this).val() );
});
Fiddle: http://jsfiddle.net/jonathansampson/rMBn4/1/
, - . .delegate . .on .