show a div if another has class 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)
const div = document.querySelector('div');
div.classList.contains('secondary'); // trueCode language: JavaScript (javascript)