jQuery Ajax load Method

jQuery Ajax load method loads data from server and returns data in the specified element.

jQuery Ajax load Method Syntax


url(Required): Url of the file you want to load.
data(optional): Data returned from server

function : (optional): Callback is executed when the request completes.

jQuery Ajax load Example

<script type="text/javascript">
              $( "#ajaxExample" ).on( "click", function(event) {             
                          var uri = '//runtest.tutorialsplane.com/';
                              alert("Status = "+xhr.statusText+" Response = "+xhr.responseText);

Try it »


Add Comment

📖 Read More