Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $(function(){
- //Close all FAQs
- $('.faq_content').hide()
- //Don't show the first now
- //$('.faq_content:first').show().addClass("current_faq")
- $('.faq_content:first').addClass("current_faq")
- $('.btn_close').click(function(){
- $(".current_faq").slideUp("slow")
- return false;
- })
- //Trigger
- $('.faq h3 a').click(function(){
- id = $(this).parent().next()
- $('.current_faq').slideUp("slow", function(){
- $(this).removeClass("current_faq")
- id.slideDown().addClass("current_faq")
- })
- return false;
- })
- })
Add Comment
Please, Sign In to add comment