Answers for "jquery expand collapse"

0

collapse uncollapse jquery

.collapse('toggle')
//Toggles a collapsible element to shown or hidden. Returns to the caller before the collapsible element has actually been shown or hidden (i.e. before the shown.bs.collapse or hidden.bs.collapse event occurs).

.collapse('show')
//Shows a collapsible element. Returns to the caller before the collapsible element has actually been shown (i.e. before the shown.bs.collapse event occurs).

.collapse('hide')
//Hides a collapsible element. Returns to the caller before the collapsible element has actually been hidden (i.e. before the hidden.bs.collapse event occurs).

.collapse('dispose')
Posted by: Guest on June-15-2021
-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 "jquery expand collapse"

Browse Popular Code Answers by Language