Before going to the specific question I need to explain a few basic steps.
First, the application in question deals with the management of appointments online by cus
I don't have enough reps to leave a comment (!!) but the UPDATE answer by @fribu-smart-solutions (https://stackoverflow.com/a/33914275/1428972) should be marked as the correct one, using:
$("html").html($("html", response).html());
This fully replaces the page via ajax. This does the job properly whereas others even using "html"
doesn't fully work.
I know this is an old post but it just solved my problem on the same issue! :)