/public/javascripts/jQuery-validationEngine-2.6.1/demos/demoValidationComplete.html

https://bitbucket.org/hamidrezas/melobit · HTML · 64 lines · 61 code · 3 blank · 0 comment · 0 complexity · 92aaa02306f006a4a048ac048ea000a3 MD5 · raw file

  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta http-equiv="Content-type" content="text/html; charset=utf-8" />
  5. <title>JQuery Validation Engine</title>
  6. <link rel="stylesheet" href="../css/validationEngine.jquery.css" type="text/css"/>
  7. <link rel="stylesheet" href="../css/template.css" type="text/css"/>
  8. <script src="../js/jquery-1.6.min.js" type="text/javascript">
  9. </script>
  10. <script src="../js/languages/jquery.validationEngine-en.js" type="text/javascript" charset="utf-8">
  11. </script>
  12. <script src="../js/jquery.validationEngine.js" type="text/javascript" charset="utf-8">
  13. </script>
  14. <script>
  15. jQuery(document).ready(function(){
  16. jQuery("#formID2").validationEngine('attach', {
  17. onValidationComplete: function(form, status){
  18. alert("The form status is: " +status+", it will never submit");
  19. }
  20. })
  21. });
  22. </script>
  23. </head>
  24. <body>
  25. <p>onValidationComplete stop the submit and let you handle the form after the validation</p>
  26. <form id="formID2" class="formular" method="post" action="">
  27. <fieldset>
  28. <legend>
  29. Phone
  30. </legend>
  31. <label>
  32. +103-304-340-4300-043
  33. <br/>
  34. +1 305 768 23 34 ext 23
  35. <br/>
  36. +1 (305) 768-2334 extension 703
  37. <br/>
  38. +1 (305) 768-2334 x703
  39. <br/>
  40. 04312 / 777 777
  41. <br/>
  42. 01-47.34/32 56
  43. <br/>
  44. (01865) 123456
  45. <br/>
  46. <span>Phone : </span>
  47. <input value="+1 305 768 23 34 ext 23 BUG" class="validate[required,custom[phone]] text-input" type="text" name="telephone" id="telephone" />
  48. </label>
  49. </fieldset>
  50. <fieldset>
  51. <legend>
  52. OnlyLetter
  53. </legend>
  54. <label>
  55. <span>only ascii letters, space and '</span>
  56. <input value="this is an invalid char '.'" class="validate[required,custom[onlyLetterSp]] text-input" type="text" name="onlyascii" id="onlyascii" />
  57. </label>
  58. </fieldset><input class="submit" type="submit" value="Validate &amp; Send the form!"/><hr/>
  59. </form>
  60. </body>
  61. </html>