Advertisement
Ranga14

AtAuction.com Landing Page JS/JQuery Condensed Registration

Aug 14th, 2013
158
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <script type="text/javascript">
  2.     function grabUser() {
  3.         var number = Math.floor((Math.random()*9)+1);
  4.         var email = document.getElementById("myEmailField").value
  5.         var user = document.getElementById("myEmailField").value
  6.         if (user!=null || user!="") {              
  7.             $("input[name=emailConfirm]").val(email)
  8.        
  9.             user = user.split("@")[0];
  10.             user = user + "12" + number;
  11.             $("input[name=name]").val(user)
  12.         }
  13.     }
  14.     function grabPass() {
  15.         var pass = document.getElementById("myPasswordField").value
  16.         $("input[name=pwdConfirm]").val(pass)
  17.     }
  18. </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement