Try this:
<input type="text" name="textfield" maxlength="10">
the maxlength will limit the number of characters to 10 in this instance
Shane Witbeck
Webmaster
-----Original Message-----
From: J.Milks [mailto:[EMAIL PROTECTED]]
Sent: Monday, November 06, 2000 1:17 PM
To: CF-Talk
Subject: OT: JavaScript to limit # of chars in a textarea
This is a multi-part message in MIME format.
------=_NextPart_000_009F_01C047F3.C6CFB520
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Hi all,
Can anyone suggest the best method to limit the number of characters =
entered into a textarea?
I seem to remember someone offering JS code that did just that on this =
list.
Thanks,
James
------=_NextPart_000_009F_01C047F3.C6CFB520
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 5.50.4134.600" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>Hi all,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>Can anyone suggest the best method to =
limit the=20
number of characters entered into a textarea?</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>I seem to remember =
someone offering JS code=20
that did just that on this list.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>Thanks,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>James</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV></BODY></HTML>
------=_NextPart_000_009F_01C047F3.C6CFB520--
----------------------------------------------------------------------------
--------------------
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists or send a
message with 'unsubscribe' in the body to [EMAIL PROTECTED]
------------------------------------------------------------------------------------------------
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists or send a message
with 'unsubscribe' in the body to [EMAIL PROTECTED]