How to do jQuery ajax post

We all know jQuery ajax post is very useful function and we should remember it always because we often use this function. Here displaying some jQuery Ajax function for developers.

$(document).ready(function(){
 
 $.ajax({
      url: 'your url',
      method: 'post',
      data:{id:id},
      success:function()
      { 
       alert('SuccessfullyMessage');
      },
               error:function()
                            {
alert('ErrorMessage');
                            }

     });

});



Comments

Popular posts from this blog