CodingForums.com
>
:: Client side development
>
JavaScript programming
> length of a text box
PDA
View Full Version :
length of a text box
ellcon
07-25-2002, 03:27 PM
How do I return the amount of characters in a text box? I tried textbox.length but it returned an undefined value. Any thoughts?
ShriekForth
07-25-2002, 04:11 PM
myLenght = document.FormName.FieldName.value.length
You need the lenght of the value.
ShriekForth
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.