maxLength

Jump to: navigation, search

maxLength

This article is Not Ready.



Summary

The maxLength attribute sets an upper limit on the number of characters that can be entered in an input element.


Applies to html/elements/input

This attribute can be applied to inputs with the type text, search, url, email, telephone, and password.

Examples

View live exampleThe example text box has a max length of 12 characters.

HTML

<input maxLength="12">



Compatibility

Desktop

Feature Chrome Firefox (Gecko) Internet Explorer Opera Safari
Basic support ? ? ? ? ?

Mobile

Feature Android BlackBerry Chrome for mobile Firefox Mobile (Gecko) IE Mobile Opera Mobile Opera Mini Safari Mobile
Basic Support ?
?
?
?
9
?
?
?

See also

Related articles

HTML

















  • html/attributes/maxLength


































… further results

Attribution

This article contains content originally from external sources.

Portions of this content come from the Microsoft Developer Network: [Windows Internet Explorer API reference Article]