Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // <form id="login" method="post" action=""/>
- function login(){
- $data=$(this).serialize();
- $.ajax({
- url: "login.php",
- type: "post",
- data: $data,
- dataType: "JSON",
- success: function(data){
- // JSON Response: {"status":"Success"}
- alert(data.status);
- // Alert(Success)
- }
- });
- return false;
- )
Add Comment
Please, Sign In to add comment