JQuery Validation Library (Document! X Sample)
Maximum number of characters required
maxlength Method
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