Search class on multiple elements using JavaScript

div1
div2
div3




Result