0

I have a search bar on my page when I search for something it returns the result perfectly with correct pagination. As shown below pagination image

but when I clicked on page 2, it returns the data correctly but instead of showing it in the proper form it just prints the whole HTML page.

The code that I have written inside JSON's successful response is that.

success : function(res) {
    $('#replaceIt').html(res);
}

instead of showing the 2nd page it just shows this.

result after click on page 2

4

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.