Trigger onChange Event in IE for radio buttons and check boxes

onChage event in IE doesn’t get triggered until the onBlur event is fired up. This can be easily fixed with the next code:

if ($.browser.msie) {  
  $(function() {  
    $('input:radio, input:checkbox').click(function() {  
      this.blur();  
      this.focus();  
    });  
  });  
}

This code will fire up both events (blur and focus) to each radio button and check box.

This workaround was taken from here

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s