$.fn.radioChange = function (fn) { return this.each(function () { if (!$.browser.msie) { $(this).change(fn); } else { $(this).click(fn); } }); };