how to check a div contain another div by class name in javascript code example
Example: check if element with class has another class javascript
const div = document.querySelector('div');
div.classList.contains('secondary'); // trueCode language: JavaScript (javascript)