I want to get current iscroll item's id when an item comes in the viewport.
Ex: if element "G" come in the view, how can i get it's id. Here is my html code:
<div id="wrapper">
<ul>
<li id='a'>A</li>
<li id='b'>B</li>
<li id='c'>C</li>
<li id='d'>D</li>
<li id='e'>E</li>
<li id='f'>F</li>
<li id='g'>G</li>
</ul>
</div>
And my js: var myScroll = new iScroll('wrapper');
Can anyone help me? Thanks in advance.....