On Sep 7, 2006, at 1:56 PM, Wil Stuckey wrote:
I've found this to be pretty helpful, so i thought i would contribute it to the group

Hi Will, 

I may be mistaken, but I think this functionality is already built into jquery.js, called toggleClass:

toggleClass: function( c ){
jQuery.className[ jQuery.className.has(this,c) ? "remove" : "add" ](this,c);
},


Cheers,

Karl

___________________
Karl Swedberg
www.englishrules.com
www.learningjquery.com



_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/

Reply via email to