load-in-global.html 720 B

123456789101112131415161718192021222324252627
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8">
  5. <title>Load in Global</title>
  6. <link rel="stylesheet" href="demo.css">
  7. </head>
  8. <body>
  9. <form class="form" data-validator-option="{timely:2}">
  10. <div class="form-item">
  11. <input type="text" name="user[email]" data-rule="required;email" placeholder="Email">
  12. </div>
  13. <div class="form-item">
  14. <input type="password" name="password" data-rule="required;" placeholder="Password">
  15. </div>
  16. <div class="form-item">
  17. <button type="submit">Submit</button>
  18. </div>
  19. </form>
  20. <script src="https://cdn.jsdelivr.net/jquery/1.12.3/jquery.min.js"></script>
  21. <script src="../dist/jquery.validator.js?local=en"></script>
  22. </body>
  23. </html>