Guest User

Untitled

a guest
Sep 14th, 2018
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
jQuery 0.32 KB | None | 0 0
  1. // <form id="login" method="post" action=""/>
  2.  
  3. function login(){
  4.     $data=$(this).serialize();
  5.     $.ajax({
  6.         url: "login.php",
  7.         type: "post",
  8.         data: $data,
  9.         dataType: "JSON",
  10.         success: function(data){
  11.             // JSON Response: {"status":"Success"}
  12.             alert(data.status);
  13.             // Alert(Success)
  14.         }
  15.     });
  16.     return false;
  17. )
Add Comment
Please, Sign In to add comment