JQuery Validation Library (Document! X Sample)
jQuery.validator Namespace / methods type / maxlength Method
Maximum number of characters required
In This Topic
    maxlength Method
    In This Topic
    Makes the element require a given maximum length.
    Syntax
    var value; // Type: Boolean
    
    // Parameters
    var length; // Type:  Number
    
    value = jQuery.validator.methods.maxlength(length);
    function maxlength( 
       length : Number
    ) : Boolean;

    Parameters

    length
    Maximum number of characters required
    Browser Compatibility
    8
    5
    5
    See Also