how to check the class name of element in javascript code example
Example: how to check has class name in js?
element.classList.contains(className);Code language: CSS (css)
element.classList.contains(className);Code language: CSS (css)