Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

query selector has clas

if (document.body.classList.contains('thatClass')) {
    // do some stuff
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #query #selector #clas
ADD COMMENT
Topic
Name
6+9 =