Skip to content

Instantly share code, notes, and snippets.

@jami-i
Created July 17, 2012 09:56
Show Gist options
  • Save jami-i/3128480 to your computer and use it in GitHub Desktop.
Save jami-i/3128480 to your computer and use it in GitHub Desktop.
jQuery.fn.swapClass = function(a, b){return $(this).removeClass(a).addClass(b)}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment