Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

class exists javascript


            
                
            
         const div = document.querySelector('.info');
div.classList.contains('secondary'); // trueCode language: JavaScript (javascript)
Source by www.javascripttutorial.net #
 
PREVIOUS NEXT
Tagged: #class #exists #javascript
ADD COMMENT
Topic
Name
9+3 =