ref: master
public/javascripts/vendor/jquery-validation/test/large.html
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" /> <title>Test for jQuery validate() plugin</title> <link rel="stylesheet" type="text/css" media="screen" href="css/screen.css" /> <script src="../lib/jquery.js" type="text/javascript"></script> <script src="../lib/jquery.metadata.js" type="text/javascript"></script> <script src="../lib/jquery.ajaxQueue.js" type="text/javascript"></script> <script src="../jquery.validate.js" type="text/javascript"></script> <script type="text/javascript"> $().ready(function() { $("#commentForm").validate(); }); </script> <style type="text/css"> #commentForm { width: 500px; } #commentForm label { width: 250px; display: block; float: left; } #commentForm label.error, #commentForm input.submit { margin-left: 253px; } .focus { background-color: red; } </style> </head> <body> <form class="cmxform" id="commentForm" method="get" action=""> <fieldset> <legend>A simple comment form with submit validation and default messages</legend> <p> <label for="cname-x0">Name (required, at least 2 characters)</label> <input id="cname-x0" name="name-x0" class="some other styles {required:true,minLength:2}" /> <p> <label for="cemail-x0">E-Mail (required)</label> <input id="cemail-x0" name="email-x0" class="{required:true,email:true}" /> </p> <p> <label for="curl-x0">URL (optional)</label> <input id="curl-x0" name="url-x0" class="{url:true}" value="" /> </p> <p> <label for="ccomment-x0">Your comment (required)</label> <textarea id="ccomment-x0" name="comment-x0" class="{required:true}"></textarea> </p> <p> <label for="cname-x1">Name (required, at least 2 characters)</label> <input class="some other styles {required:true,minLength:2}" name="name-x1" id="cname-x1"/> </p><p> <label for="cemail-x1">E-Mail (required)</label> <input class="{required:true,email:true}" name="email-x1" id="cemail-x1"/> </p> <p> <label for="curl-x1">URL (optional)</label> <input value="" class="{url:true}" name="url-x1" id="curl-x1"/> </p> <p> <label for="ccomment-x1">Your comment (required)</label> <textarea class="{required:true}" name="comment-x1" id="ccomment-x1"></textarea> </p> <p> <label for="cname-x2">Name (required, at least 2 characters)</label> <input class="some other styles {required:true,minLength:2}" name="name-x2" id="cname-x2"/> </p><p> <label for="cemail-x2">E-Mail (required)</label> <input class="{required:true,email:true}" name="email-x2" id="cemail-x2"/> </p> <p> <label for="curl-x2">URL (optional)</label> <input value="" class="{url:true}" name="url-x2" id="curl-x2"/> </p> <p> <label for="ccomment-x2">Your comment (required)</label> <textarea class="{required:true}" name="comment-x2" id="ccomment-x2"></textarea> </p> <p> <label for="cname-x3">Name (required, at least 2 characters)</label> <input class="some other styles {required:true,minLength:2}" name="name-x3" id="cname-x3"/> </p><p> <label for="cemail-x3">E-Mail (required)</label> <input class="{required:true,email:true}" name="email-x3" id="cemail-x3"/> </p> <p> <label for="curl-x3">URL (optional)</label> <input value="" class="{url:true}" name="url-x3" id="curl-x3"/> </p> <p> <label for="ccomment-x3">Your comment (required)</label> <textarea class="{required:true}" name="comment-x3" id="ccomment-x3"></textarea> </p> <p> <label for="cname-x4">Name (required, at least 2 characters)</label> <input class="some other styles {required:true,minLength:2}" name="name-x4" id="cname-x4"/> </p><p> <label for="cemail-x4">E-Mail (required)</label> <input class="{required:true,email:true}" name="email-x4" id="cemail-x4"/> </p> <p> <label for="curl-x4">URL (optional)</label> <input value="" class="{url:true}" name="url-x4" id="curl-x4"/> </p> <p> <label for="ccomment-x4">Your comment (required)</label> <textarea class="{required:true}" name="comment-x4" id="ccomment-x4"></textarea> </p> <p> <label for="cname-x5">Name (required, at least 2 characters)</label> <input class="some other styles {required:true,minLength:2}" name="name-x5" id="cname-x5"/> </p><p> <label for="cemail-x5">E-Mail (required)</label> <input class="{required:true,email:true}" name="email-x5" id="cemail-x5"/> </p> <p> <label for="curl-x5">URL (optional)</label> <input value="" class="{url:true}" name="url-x5" id="curl-x5"/> </p> <p> <label for="ccomment-x5">Your comment (required)</label> <textarea class="{required:true}" name="comment-x5" id="ccomment-x5"></textarea> </p> <p> <label for="cname-x6">Name (required, at least 2 characters)</label> <input class="some other styles {required:true,minLength:2}" name="name-x6" id="cname-x6"/> </p><p> <label for="cemail-x6">E-Mail (required)</label> <input class="{required:true,email:true}" name="email-x6" id="cemail-x6"/> </p> <p> <label for="curl-x6">URL (optional)</label> <input value="" class="{url:true}" name="url-x6" id="curl-x6"/> </p> <p> <label for="ccomment-x6">Your comment (required)</label> <textarea class="{required:true}" name="comment-x6" id="ccomment-x6"></textarea> </p> <p> <label for="cname-x7">Name (required, at least 2 characters)</label> <input class="some other styles {required:true,minLength:2}" name="name-x7" id="cname-x7"/> </p><p> <label for="cemail-x7">E-Mail (required)</label> <input class="{required:true,email:true}" name="email-x7" id="cemail-x7"/> </p> <p> <label for="curl-x7">URL (optional)</label> <input value="" class="{url:true}" name="url-x7" id="curl-x7"/> </p> <p> <label for="ccomment-x7">Your comment (required)</label> <textarea class="{required:true}" name="comment-x7" id="ccomment-x7"></textarea> </p> <p> <label for="cname-x8">Name (required, at least 2 characters)</label> <input class="some other styles {required:true,minLength:2}" name="name-x8" id="cname-x8"/> </p><p> <label for="cemail-x8">E-Mail (required)</label> <input class="{required:true,email:true}" name="email-x8" id="cemail-x8"/> </p> <p> <label for="curl-x8">URL (optional)</label> <input value="" class="{url:true}" name="url-x8" id="curl-x8"/> </p> <p> <label for="ccomment-x8">Your comment (required)</label> <textarea class="{required:true}" name="comment-x8" id="ccomment-x8"></textarea> </p> <p> <label for="cname-x9">Name (required, at least 2 characters)</label> <input class="some other styles {required:true,minLength:2}" name="name-x9" id="cname-x9"/> </p><p> <label for="cemail-x9">E-Mail (required)</label> <input class="{required:true,email:true}" name="email-x9" id="cemail-x9"/> </p> <p> <label for="curl-x9">URL (optional)</label> <input value="" class="{url:true}" name="url-x9" id="curl-x9"/> </p> <p> <label for="ccomment-x9">Your comment (required)</label> <textarea class="{required:true}" name="comment-x9" id="ccomment-x9"></textarea> </p> <p> <input class="submit" type="submit" value="Submit"/> </p> </fieldset> </form> </body> </html> |