Home » Javascript » How to find element which has 2 classes

How to find element which has 2 classes

Posted by: admin August 19, 2018 Leave a comment

Questions:

How to find a element which has 2 classes

for example

<div class="class1 class2"></div>
<div class="class1"></div>

here I want to apply different CSS for both the div, but both have class name as “class1”

Answers: