/ Published in: jQuery
Expand |
Embed | Plain Text
// Click toggles multiple classes $('a.jButton').click(function() { // Track click on the button $('#followUsHover').toggleClass('visible', '200'); // Toggle class and animate $('a.jButton').toggleClass('jButtonOut', '200'); // Toggle class and animate });
Comments
Subscribe to comments
You need to login to post a comment.

There might be a better way of writing this?!?!
Clicking the button causes another E to change class and the button itself.
I forgot to add that to animate it will you'll need jQueryUI. If you haven't it won't break just won't animate.