I've got a page with a variable number of <select> elements (which explains why I'm using event delegation here). When the user changes the selected option, I want to hide/show different content areas on the page. Here's the code I have:
$(document).ready(function() {
  $('#container').change(function(e) {
    var changed = $(e.target);
    if (changed.is('select[name="mySelectName"]')) {
      // Test the selected option and hide/show different content areas.
    }
  });
});
This works in Firefox and Safari, but in IE the change event doesn't fire. Anyone know why?
 
     
     
     
     
     
     
     
     
     
     
     
     
    