I have a list in my page,I want the list be scrollble, only the list without all the rest of the page...I using iScroll
js file
this is my code:
<div id="ds">
<div id="rtrt">
<ul data-role="listview" id="a1"
<li>
<a href="#">1</a>
</li>
<li>
<a href="#">2</a>
</li>
<li>
<a href="#">3</a>
</li>
.
.
.
.
</ul>
</div>
</div>
<script type="text/javascript">
var myScroll;
function loaded() {
myScroll = new iScroll('rtrt');
}
document.addEventListener('touchmove', function (e) { e.preventDefault(); }, false);
document.addEventListener('DOMContentLoaded', function () { setTimeout(loaded, 200); }, false);
</script>
But the scroll is over the list on all the window,so i scrolling over all the screen, How can I scroll only the list in the middle of the screen (in mobile).
Any ideas?