Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

toggle class javascript

var menu = document.querySelector('.menu') // Using a class instead, see note below.
menu.classList.toggle('hidden-phone');
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #toggle #class #javascript
ADD COMMENT
Topic
Name
1+4 =