Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

on button click show collapse div jquery

$(function() {
  var b = $("#button");
  var w = $("#wrapper");
  var l = $("#list");
  b.click(function() {
    w.toggleClass('open'); /* <-- toggle the application of the open class on click */
  });
});
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #button #click #show #collapse #div #jquery
ADD COMMENT
Topic
Name
5+5 =