javascript check if srcelement contains class code example
Example: javascript hass class
if (myElement.classList.contains('someClassname')) {
// do something
}
if (myElement.classList.contains('someClassname')) {
// do something
}