I'm trying to make a page scroll to top when a link is clicked. Heres what I got so far.
<script>
jQuery(document).ready(function () {
jQuery("ul.pager a").click(function() {
scroll(0,0);
return false;
});
});
<script>
Problem with that code is that it works only on first click.
How to make it work every time I click on a link?
</script>
tag is wrong here. I don't know if that's the actual HTML you used, though. Can we have a jsFiddle?