how to check if there is a class in jquery code example
Example: javascript hasclass
if (document.body.classList.contains('thatClass')) {
// do some stuff
}
if (document.body.classList.contains('thatClass')) {
// do some stuff
}