Solution for "javascript check if es6 "class" has field"

if(document.getElementById("myElmentID").classList.contains("hidden")){ // I have the 'hidden' class }

javascript check if element has class

Similar codes for "javascript check if es6 "class" has field"


Latest 'Javascript' questions

Added before "javascript check if es6 "class" has field"