i have a small report generated at the bottom of a page.
it has pagination numbers. all these ajax generated.
now the pagination numbers have the following code.
notice that for hreaf i have put #.Code:echo "<a href=\"#\" id='$i' class='pagenum' onclick='ajaxpost_rep_gen($i);change($i)'/>" . $i . "</a>" . " ";
now my problem is, when click a pagination number, the page is scrolled to the top of the page.
so each time when click a pagination number at the bottom, user have to scroll down to see the report's next page.
screen shot of the report :