Advertisement
Guest User

Finalcode

a guest
Sep 23rd, 2013
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.12 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. <meta name="Keywords" content="bangalore, delhi, mumbai, chennai, pune, calcutta, hyderabad" />
  6. <meta name="Description" content="Network." />
  7. <script type='text/javascript'>//<![CDATA[
  8. $(window).load(function(){
  9. $(document).ready(function () {
  10.  
  11. $("#form1").validate({
  12. invalidHandler: function() {
  13. alert('FAILED validation');
  14. },
  15. submitHandler: function() {
  16. alert('PASSED validation');
  17. }
  18. });
  19.  
  20. });
  21. });//]]> </script>
  22.  
  23. <style>
  24. form.form1 label.error { display: none; }
  25. </style>
  26.  
  27. <link rel="shortcut icon" type="image/x-icon" href="/favicon.ico" />
  28. <link rel="alternate" type="application/rss+xml" title="RSS" href="http://feeds.feedburner.com/indiblogger" /><link rel="search" type="application/opensearchdescription+xml" title="Search" href="http://www.blogmetrics.in/opensearch.xml" />
  29. <link href="/css/e1.5.css" rel="stylesheet" type="text/css" />
  30. <link href="/css/blue1.5.css" rel="stylesheet" type="text/css" />
  31. <script src="/js/jquery-1.10.2.min.js" type="text/javascript"></script>
  32. <script src="/js/globalscripts-1.1.js" type="text/javascript"></script>
  33.  
  34. <script type='text/javascript' src="http://ajax.aspnetcdn.com/ajax/jquery.validate/1.10.0/jquery.validate.min.js"></script>
  35. <script type='text/javascript' src="http://ajax.aspnetcdn.com/ajax/jquery.validate/1.10.0/additional-methods.js"></script>
  36. </head>
  37. <body>
  38. <div id="loc" class="fw">
  39.  
  40. <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="check[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="check[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="check[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="check[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="check[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="check[1]" value="bbbb">bbbb
  85. </label>
  86.  
  87. <br />
  88. <label for="check[6]"><input type="checkbox" class="checkbox" id="check[6]" name="check[1]" value="cccc">cccc
  89. </label>
  90.  
  91. <br />
  92. <label for="check[7]"><input type="checkbox" class="checkbox" id="check[7]" name="check[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.  
  115.  
  116.  
  117. </div><!-- #maincontent -->
  118. <div id="sidebar">
  119. <h3>Title</h3>
  120. <p></p>
  121. </div><!-- #sidebar -->
  122. </div><!-- #content -->
  123. </div><!-- #loc -->
  124.  
  125. </body>
  126. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement