Advertisement
Guest User

Errorcode

a guest
Sep 23rd, 2013
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.83 KB | None | 0 0
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  5. <script>
  6. $(document).ready(function () {
  7.  
  8. $("#form1").validate({
  9. invalidHandler: function() {
  10. alert('FAILED validation');
  11. },
  12. submitHandler: function() {
  13. alert('PASSED validation');
  14. }
  15. });
  16.  
  17. });
  18. </script>
  19.  
  20. <style>
  21. form.form1 label.error { display: none; }
  22. </style>
  23.  
  24. <link href="/css/e1.5.css" rel="stylesheet" type="text/css" />
  25. <link href="/css/blue1.5.css" rel="stylesheet" type="text/css" />
  26. <script src="/js/jquery-1.10.2.min.js" type="text/javascript"></script>
  27. <script src="/js/globalscripts-1.1.js" type="text/javascript"></script>
  28. <script src="/js/jquery.validate.js"></script>
  29. <script src="/js/jquery.js"></script>
  30. </head>
  31. <body>
  32. <div id="loc" class="fw">
  33. <div id="header">
  34. <div id="searchbar" class="fl">
  35. <form action="/search/" method="get" name="searchform" id="searchform" class="fr">
  36. <input name="q" type="text" id="searchq" value="Search" class="clearme" maxlength="20" />
  37. <input type="submit" value="Search" id="searchbutton" />
  38. </form>
  39. </div><!-- #searchbar -->
  40. </div><!-- #header --><ul id="crumbs"><li><a href="/">Home</a></li><li><a href="template.php">Template</a></li><li>This page</li></ul><!-- crumbs -->
  41.  
  42.  
  43.  
  44. <div id="content">
  45. <div id="maincontent">
  46. <h1>Title</h1>
  47. <form id="form1" name="form1" method="post" action="survsubmit.php" novalidate="novalidate">
  48. <fieldset>
  49.  
  50. 1 . Question One
  51. <br/>
  52. <fieldset>
  53.  
  54. <label for="check[0]">
  55. <input type="checkbox" class="checkbox" id="check[0]" name="0" value="Opt One" required="required" minlength="2">Opt One
  56. </label>
  57.  
  58. <br />
  59. <label for="check[1]"><input type="checkbox" class="checkbox" id="check[1]" name="0" value="Opt Two">Opt Two
  60. </label>
  61.  
  62. <br />
  63. <label for="check[2]"><input type="checkbox" class="checkbox" id="check[2]" name="0" value="Opt Three">Opt Three
  64. </label>
  65.  
  66. <br />
  67. <label for="check[3]"><input type="checkbox" class="checkbox" id="check[3]" name="0" value="Opt Four">Opt Four
  68. </label>
  69.  
  70. <br />
  71. <label for="0" class="error" style="display:none"> Please select at least one option. </label>
  72. <br/>
  73. </fieldset>
  74.  
  75. 2 . Question Two
  76. <br/>
  77. <fieldset>
  78.  
  79. <label for="check[4]">
  80. <input type="checkbox" class="checkbox" id="check[4]" name="1" value="aaaa" required="required" minlength="2">aaaa
  81. </label>
  82.  
  83. <br />
  84. <label for="check[5]"><input type="checkbox" class="checkbox" id="check[5]" name="1" value="bbbb">bbbb
  85. </label>
  86.  
  87. <br />
  88. <label for="check[6]"><input type="checkbox" class="checkbox" id="check[6]" name="1" value="cccc">cccc
  89. </label>
  90.  
  91. <br />
  92. <label for="check[7]"><input type="checkbox" class="checkbox" id="check[7]" name="1" value="dddd">dddd
  93. </label>
  94.  
  95. <br />
  96. <label for="1" class="error" style="display:none"> Please select at least one option. </label>
  97. <br/>
  98. </fieldset>
  99.  
  100. 3 . Question Three
  101. <br/>
  102. <input type="radio" name="2" id="radio[8]" value="Yes" required/>Yes
  103. <br />
  104. <input type="radio" name="2" id="radio[9]" value="No" required/>No
  105. <br />
  106. <label for="2" class="error" style="display:none"> Please select at least one option. </label>
  107. <br/>
  108. <br/>
  109. <br/>
  110. <input type="submit" value="Submit!" />
  111. </fieldset>
  112. </form>
  113.  
  114. </div><!-- #maincontent -->
  115. <div id="sidebar">
  116. <h3>Title</h3>
  117. <p></p>
  118. </div><!-- #sidebar -->
  119. </div><!-- #content -->
  120. </div><!-- #loc -->
  121. <div id="footer">
  122. <div id="footercontent">
  123.  
  124. </div>
  125. </div><!-- #footer -->
  126. <!-- IndiCode V3.0 - 3 Whiskies Down -->
  127. </body>
  128. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement