Friday, 26 March 2010

How to use ajax call using jquery?

Please use the following code to call ajax:  
 
function updateStatus() {
     $.ajax({
         url: 'getStatus.php',
         success: function(response) {
             // update status element
             $('#status').html(response);
         }
     });
 }
 
 
 
Cheers!

2 comments:

  1. This comment has been removed by a blog administrator.

    ReplyDelete
  2. Thanks ashwani I always forgot this code. but this time i ll remember that.

    keep posting!

    ReplyDelete