Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascript hass class

if (myElement.classList.contains('someClassname')) {
    // do something
}
 
PREVIOUS NEXT
Tagged: #javascript #hass #class
ADD COMMENT
Topic
Name
1+3 =