On 9/7/06, Karl Swedberg <[EMAIL PROTECTED]> wrote:
On Sep 7, 2006, at 1:56 PM, Wil Stuckey wrote:
I may be mistaken, but I think this functionality is already built into jquery.js, called toggleClass:

Karl,

Im pretty sure toggleClass simply adds and removes a single class name. What i needed was something that would switch between two different class names. You can see an example here.

http://sandbox.wilstuckey.com/jquery/swapClass.html

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

Reply via email to