Posted By

xz on 09/30/10


Tagged

class toggle expanding swap


Versions (?)

Who likes this?

4 people have marked this snippet as a favorite

BeximusPrime
bobbym245
jplr
gunnu


JQuery Expanding div with toggle


 / Published in: jQuery
 

  1. $(document).ready(function(){
  2. $(".faq").hide();
  3. $("h3.faq_head").click(function(){
  4. $(this).next(".faq").slideToggle(250);
  5. $(this).toggleClass("hover_subtract").toggleClass("hover");
  6. });
  7. $("h3.faq_head").addClass("hover");
  8. });

Report this snippet  

Comments

RSS Icon Subscribe to comments
Posted By: gunnu on October 16, 2010

Code snippet - JQuery Expanding div with toggle on Snipplr

You need to login to post a comment.