Revision: 1379
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at October 3, 2006 04:33 by mlange
Initial Code
$.fn.swapClass = function(c1, c2){ return this.each(function(){ var t = $(this); (!t.is('.'+c1)) ? t.addClass(c1).removeClass(c2) : t.addClass(c2).removeClass(c1); }); }
Initial URL
Initial Description
Initial Title
jquery swapclass
Initial Tags
css, jquery
Initial Language
JavaScript