Basicly i would like something like, when you click on each div from **object1**, if on **object2** has the same class, do something.

In this case it will scroll until the respective element. 

```
<div class='object1'>
   <div class='element 1'></div>
   <div class='element 2'></div>
   <div class='element 3'></div>
</div>

<div  class='object2'>
   <div class='element 1'></div>
   <div class='element 2'></div>
   <div class='element 3'></div>
</div>

```