Wrox Home  
Search P2P Archive for: Go

  Return to Index  

javascript_howto thread: Limiting the length of the string in an INPUT


Message #1 by "payam." <torkian@c...> on Sat, 15 Feb 2003 14:26:39 +0330 (IRT)
Add maxlength attribute

<input type="text" name="name" size="10" maxlength="4">

Majid


----- Original Message -----
From: "payam." <torkian@c...>
To: "JavaScript HowTo" <javascript_howto@p...>
Sent: Saturday, February 15, 2003 5:56 AM
Subject: [javascript_howto] Limiting the length of the string in an INPUT


> Hello
>
> I want to have an INPUT to just accept 4 characters in it self.
> for example automatically don't change it's value, when the length of the
> string in it got more than 4.
> is it possible?
> thanks
>
>
>


  Return to Index