Skip to content

Instantly share code, notes, and snippets.

@jdeerhake
Created August 13, 2011 00:39
Show Gist options
  • Save jdeerhake/1143330 to your computer and use it in GitHub Desktop.
Save jdeerhake/1143330 to your computer and use it in GitHub Desktop.
Radio button change event
(function() {
jQuery("input[type=radio]").bind("change", function(ev) {
var that = jQuery(this);
jQuery("[name=" + that.attr("name") + "]").trigger("radioChange");
});
}());
//Subscribe to radioChange event, and it will get fired every time anything in its group changes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment