I'm using jquery's $.post like this:
$.post("/searchresult", $("#searchDiv").serialize(), function(data) { //??? });
The "data" parameter has all the html code of the result page I want.
The question is how do I replace my current page's content with this one returned by the $.post function.
Thanks,
Rui
$('body').html(data);
should do it.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With