Bug Tracker

Show
Ignore:
Timestamp:
02/18/07 18:46:36 (2 years ago)
Author:
joern
Message:

validation alpha 2

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • branches/joern-dev/fuzz/validation/validateCustomTest.html

    r1362 r1370  
    1515<body> 
    1616 
    17 <div id="texttests"> 
     17<form action="foo.html" id="texttests"> 
    1818 
    1919    <h2>Some more tests with text and textarea and validating on blur</h2> 
     
    2525        textarea 
    2626        <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!" 
    2828            test="required:true, minLength:3, maxLength:15, number:true"></textarea> 
    2929        <br/> 
     
    5858        <label for="family" class="error">Please select your family status.</label> 
    5959    </div> 
    60  
    61 </div> 
     60    <input type="submit" /> 
     61</form> 
    6262 
    6363<script type="text/javascript"> 
     
    8181    $(document).ready(function() { 
    8282        $.validator.defaults.debug = true; 
    83         var options = { 
     83         
     84        $("#texttests").validate({ 
    8485            // important: combining focus with validation on blur can crash browsers 
    8586            focusInvalid: false, 
    86             event: "blur" 
    87         }; 
    88          
    89         $("#texttests").validate(options); 
     87            event: "blur", 
     88            onsbumit: false 
     89        }); 
    9090         
    9191    });