Answers for "jquery accordion"

-2

jquery accordion

<script> 

  $(function() { 

    $('.faqAnswer').slideUp();    // for content 

    $(".faqTitle").on( "click", function() {  // for title 

      var x = $(this).next(); 

      $('.faqAnswer').not(x).slideUp();           

      $(this).next().slideToggle(200); 

    }); 

  }); 

</script>
Posted by: Guest on December-17-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language