|
.load ( SERVER_URL [, PARAM_JSON ] [, SUCCESS_FN ] )
load() function will be applied to an html element. It loads the element with response content for an AJAX request from a server.
Parameters
Example 1
Load the html element from the server response for an AJAX request using load().
JS
$.domLoaded(function() {
$.get("#ajax1").on("click", function() {
$.get("#result").load("../../ajax/AjaxServer.php");
});
});
Result
| |||||||||||||
