jQuery Tutorial


jQuery Example


jQuery References


jQuery Ajax load() Method Reference


  jQuery Ajax Method References


Uses

jQuery load() method load URL for requested document to open.


Syntax

$(selector).load(url,data,callback)

jQuery Ajax load() Method support following parameter.

Parameter Description
url url is required parameter. load the url file when request was found.
data data is optional parameter. data send to the server when request was found. .
callback Callback is optional parameter. It is use to represents a function to be executed whenever effect is completed.

jQuery Ajax load() method Example

<script type="text/javascript"> 
$(document).ready(function(){
  $("button").click(function(){
    $("div").load('ajaxfile.txt');
  });
});
<script>
Online Try This Code Your Self....   »

  jQuery Ajax Method References