Advertisement
mikjaer

Untitled

Feb 6th, 2017
319
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.64 KB | None | 0 0
  1. 91
  2. 92 function validateEmail(email)
  3. 93 {
  4. 94 var retval = false;
  5. 95 jQuery.ajax({
  6. 96 async: false,
  7. 97 url: "/wp-content/plugins/WioShop/ajax.php?action=validateemail&email="+email,
  8. 98 success: function(data)
  9. 99 {
  10. 100 if (data != "OK")
  11. 101 {
  12. 102 alert(data);
  13. 103 retval = false;
  14. 104 }
  15. 105 else {
  16. 106 retval = true;
  17. 107 }
  18. 108 }
  19. 109 });
  20. 110 return retval;
  21. 111 }
  22. 112
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement