Easy Ajax with jQuery

$.ajax({
  type: "POST",
  url: "sample.php",
  data: "name=ramesh" ,
  success: function(msg){
 $('#message').html(msg);
 
  }
});

If you’ve developed Ajax applications before without jQuery, you’ll immediately see the value here. jQuery has put all of the properties of Ajax into one simple API. You can control everything including the url, cache, success function, data type, and even synchronization, all from one neat declaration. It’s nothing short of beautiful.