/html-dom /Basic
GitHub 5008★

Check if an element has given class

ele.classList.contains('class-name');

See also

Follow me on and to get more useful contents.