Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

jquery toggle class

$('.ButtonClass').on('click', function(e) {
  $('.Items').toggleClass("toggleyour CLASS"); //Target Div where toggle class 
  e.preventDefault();
});
Source by api.jquery.com #
 
PREVIOUS NEXT
Tagged: #jquery #toggle #class
ADD COMMENT
Topic
Name
4+2 =