Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

how to remove a class from element with javascript

const div =  document.querySelector('div') // Get element from DOM
div.classList.remove('info') // Remove class "info"
Source by www.javascripttutorial.net #
 
PREVIOUS NEXT
Tagged: #remove #class #element #javascript
ADD COMMENT
Topic
Name
6+8 =