JQuery Expanding div with toggle


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



Copy this code and paste it in your HTML
  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

You need to login to post a comment.