jQuery Ajax get Method

jQuery Ajax get method loads data from server using the HTTP GET Request.

jQuery Ajax $.get() Method Syntax


url(Required): Url of the file you want to load.
function : (optional): Callback is executed when the request completes.

jQuery Ajax get method Example

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

Try it »

Note : get_method_demo.php contains the following data which is returned from the server :

<h3>Get Method Demo</h3>

Data Loaded from server using get method.


Add Comment

📖 Read More