Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

toggle class javascript stack overflow

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 #stack #overflow
ADD COMMENT
Topic
Name
5+8 =