Advertisement
Guest User

Untitled

a guest
May 25th, 2019
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
jQuery 0.34 KB | None | 0 0
  1. $.post("/ajax/login", $("#login_form").serializeJSON(), function (response) {
  2.                 if(!response.status){
  3.                     $(".alert-danger").show();
  4.                     $(".error_message").html(response.msg);
  5.                 } else{
  6.                     window.location.replace("/");
  7.                 }
  8.             }, 'json');
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement