- Timestamp:
- 02/18/07 18:46:36 (2 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
branches/joern-dev/fuzz/validation/validateCustomTest.html
r1362 r1370 15 15 <body> 16 16 17 < divid="texttests">17 <form action="foo.html" id="texttests"> 18 18 19 19 <h2>Some more tests with text and textarea and validating on blur</h2> … … 25 25 textarea 26 26 <textarea id="textarea" cols="25" rows="5" 27 title="Please enter a date with at least 3 and max 15 characters! (length and date)"27 title="Please enter a number with at least 3 and max 15 characters!" 28 28 test="required:true, minLength:3, maxLength:15, number:true"></textarea> 29 29 <br/> … … 58 58 <label for="family" class="error">Please select your family status.</label> 59 59 </div> 60 61 </ div>60 <input type="submit" /> 61 </form> 62 62 63 63 <script type="text/javascript"> … … 81 81 $(document).ready(function() { 82 82 $.validator.defaults.debug = true; 83 var options = { 83 84 $("#texttests").validate({ 84 85 // important: combining focus with validation on blur can crash browsers 85 86 focusInvalid: false, 86 event: "blur" 87 }; 88 89 $("#texttests").validate(options); 87 event: "blur", 88 onsbumit: false 89 }); 90 90 91 91 });
