Guest User

Untitled

a guest
Jun 18th, 2018
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. // there's some argument that I should just overload the change event handler
  2. // but I want to run it past a few 'jQueryians' first - IE does treat keyboard
  3. // navigation, i.e. selecting the radio element as a click...bizarre - but useful.
  4. $.fn.radioChange = function (fn) {
  5. return this.each(function () {
  6. if (!$.browser.msie) {
  7. $(this).change(fn);
  8. } else {
  9. $(this).click(fn);
  10. }
  11. });
  12. };
Add Comment
Please, Sign In to add comment