jQuery Pagination works great, but when you click for the next set of results the window does not return to the top (if you have to scroll to get to the pagination). would anyone have any ideas on how to force the window scroll back to the top on click?
--------- function pageselectCallback(page_index, jq){ var new_content = $('#hiddenresult div.result:eq('+page_index +')').clone(); $('#Searchresult').empty().append(new_content); return false; } function initPagination() { var num_entries = $('#hiddenresult div.result').length; // Create pagination element $("#Pagination").pagination(num_entries, { num_edge_entries: 10, num_display_entries: 8, callback: pageselectCallback, items_per_page:1 }); } // Load HTML snippet with AJAX and insert it into the Hiddenresult element // When the HTML has loaded, call initPagination to paginate the elements $(document).ready(function(){ initPagination(); });