I have for example the following structure
<div style="height: 1500px;">
<div id="dv1" style="height: 600px">
conteudo 1
</div>
<div id="dv2" style="height: 300px">
conteudo 2
</div>
<div id="dv3" style="height: 300px">
conteudo 3
</div>
<div id="dv4" style="height: 300px">
conteudo 4
</div>
</div>
And always scrolling the scroll, I would like to get the current position of the div "content 3"
I tried to get clicked on some other div and nothing, scrolling the scroll just like it would do and nothing at all.
var a = $('#dv2').scrollTop();
alert(a);