Answers for "how to make accordion using jquery"

-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

Browse Popular Code Answers by Language