Answers for "how to say contains class in js"

4

js contains class

element.classList.contains('class');
Posted by: Guest on February-16-2021
-1

how to check has class name in js?

element.classList.contains(className);Code language: CSS (css)
Posted by: Guest on February-20-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language