If your response includes the <head>
and <body>
tags:
$("html").html(response);
.
If not, and it’s only content, then do:
$("body").html(response);
.
More Related Contents:
- How to send data to the server via Ajax?
- HTML: how refresh information in [closed]
- “Mixed content blocked” when running an HTTP AJAX operation in an HTTPS page
- how to assign javascript variable value to php variable
- How to replace html element with ajax response?
- PHP get contents of a div, and echo the div contents in same page
- How to send FormData objects with Ajax-requests in jQuery? [duplicate]
- Submit form without page reloading
- how to bypass Access-Control-Allow-Origin?
- Refresh/reload the content in Div using jquery/ajax
- Set timeout for ajax (jQuery)
- Using HTML5 file uploads with AJAX and jQuery
- Pass Javascript variable to PHP via ajax
- How to set selected value of jQuery Select2?
- AJAX jQuery refresh div every 5 seconds
- How to convert HTML to JSON using PHP?
- Keep input value after refresh page
- send json object from javascript to php
- jQuery AJAX Call to PHP Script with JSON Return
- How can I return a view from an AJAX call in Laravel 5?
- How do I edit PHP variable with JavaScript/jQuery?
- how to use jQuery ajax calls with node.js
- Chained Select Boxes (Country, State, City)
- How to make a button execute a php script?
- SyntaxError: JSON.parse: unexpected character at line 1 column 1 of the JSON data
- Remove everything within script and style tags
- jquery ajax parse response text
- How do I execute a PHP query on select option choice using AJAX?
- How to return an array from an AJAX call?
- Parsing returned HTML from jQuery AJAX request