Click toggles multiple classes


/ Published in: jQuery
Save to your folder(s)



Copy this code and paste it in your HTML
  1. // Click toggles multiple classes
  2. $('a.jButton').click(function() { // Track click on the button
  3. $('#followUsHover').toggleClass('visible', '200'); // Toggle class and animate
  4. $('a.jButton').toggleClass('jButtonOut', '200'); // Toggle class and animate
  5. });

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.