Guest User

Untitled

a guest
Jan 23rd, 2019
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. <input type="text" name="verify" id="verify" required class="contact-input">
  2.  
  3. var rnuma = Math.floor(Math.random() * 5);
  4. var rnumb = Math.floor(Math.random() * 5);
  5. var sum = rnuma + rnumb;
  6.  
  7. $("#contact-form").validate({
  8. rules: {
  9. verify: {
  10. value: sum
  11. },
  12. },
  13. });
Add Comment
Please, Sign In to add comment