// 1. Use if for see that classes:_x000D_
_x000D_
if (document.querySelector(".section-name").classList.contains("section-filter")) {_x000D_
alert("Grid section");_x000D_
// code..._x000D_
}
_x000D_
<!--2. Add a class in the .html:-->_x000D_
_x000D_
<div class="section-name section-filter">...</div>
_x000D_