Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

form

Posted on 1999-01-11
1
Medium Priority
?
222 Views
Last Modified: 2010-04-09
in an <INPUT TYPE=text> form tag is it possible to
specify that the text field can have a maximum of say
3 characters only?
0
Comment
Question by:mramsay
1 Comment
 

Accepted Solution

by:
tgoglia earned 200 total points
ID: 1841594
Yes, all you have to do is set the maxlength attribute to the value that you would like-

<input type='text' maxlength='3'>

The W3C has really good documentation for the various versoins of HTML (ie 2.0,3.2,etc..) on their website http://www.w3c.org
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article explains how to prepare an HTML email signature template file containing dynamic placeholders for users' Azure AD data. Furthermore, it explains how to use this file to remotely set up a department-wide email signature policy in Office …
The first step to building an amazing About page is to figure out what you want the page to say about your company. You then must grab the attention of the reader, boast a bit, tell a story and let others brag about you. With a little bit of thought…
In this tutorial viewers will learn how to code links for mobile sites that, once clicked, send a call or text to a specified number. For a telephone link (once clicked, calls a number), begin with a normal "<a href=" link tag. For the href, specify…
In this tutorial viewers will learn how to embed an audio file in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: : The declaration should display (CODE) HTML5 is supported by the most recent versions of all major browsers…

876 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question