Answer the question
In order to leave comments, you need to log in
How to make pagination navigation stay inside ajax page?
The page is loaded on the current page on click:
$(document).ready(function () {
$("#show").click(function () {
$("#container").empty(),$("#container").append($("<div></div>").load("page.html"));
});
});
Answer the question
In order to leave comments, you need to log in
Load the data not in a div but in an iframe , then all pagination will take place purely inside the iframe without affecting the main page.
$(function () {
$("#show").one('click', function () {
$("#container").html('<iframe src="page.html"></iframe>');
});
});
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question