File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes HTML, CSS and JavaScript and the fly likes javascript/html Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Elasticsearch in Action this week in the Big Data forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "javascript/html" Watch "javascript/html" New topic


prateek saluja

Joined: Nov 25, 2007
Posts: 2
how to limit the text box entry
Ulf Dittmer

Joined: Mar 22, 2005
Posts: 42954
Assuming you're talking about an input field of type=text, then you can use the maxlength attribute to set the maximum allowable number of characters.
It is sorta covered in the JavaRanch Style Guide.
subject: javascript/html