Advertisement
Guest User

Untitled

a guest
Nov 5th, 2015
135
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 1.29 KB | None | 0 0
  1. <form class="form" id="signup" method="post" action="/assassin" enctype="multipart/form-data">
  2.       <label>First and Last Name</label>
  3.       <input type="text" name="name" required />
  4.  
  5.       <label>Email</label>
  6.       <input type="email" name="email" required />
  7.  
  8.       <label>Year</label>
  9.       <input type="number" name="year" required />
  10.  
  11.       <label>Photo</label><small>Please use a real photo of yourself.  Players who do not upload a real photo will be deleted before the games starts</small>
  12.       <input type="file" name="file" required />
  13.  
  14.       <div class="checkbox">
  15.         <label>
  16.           <input type="checkbox" required />
  17.           By checking this box, you agree that you have read the rules and will follow them at all times.</label>
  18.       </div>
  19.  
  20.       <input type="submit" value="Enlist">
  21.     </form>
  22.  
  23. <!-- MORE CODE HERE THATS NOT RELEVANT -->
  24.  
  25. <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js"></script>
  26. <script src="/javascripts/jquery.form.js"></script>
  27. <script>
  28.   $(document).ready(function(){
  29.     $("#message").hide();
  30.    
  31.     $("#signup").ajaxForm({
  32.       beforeSubmit: function(){
  33.         $("#signup").fadeOut();
  34.       },
  35.       success: function(data){
  36.         $("#message").fadeIn();
  37.       }
  38.     });
  39.   });
  40. </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement