|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
character counter
I am lost here. I would like to know if there is a way to count down the characters that are input into a text field. I would like 160 characters MAX to be input into the field and as the visitor types in the characters there is a counter that reduces as the text is types (including spaces and symbols). I dont know if this is possible, but i would be grateful is someone could point me in the right direction.
Cheers The "Big Eared" Chicken :-) |
|
#2
|
||||
|
||||
|
RE: character counter
You'll want to use Javascript for this. This is a fairly common thing; try searching at http://www.hotscripts.com/.
|
|
#3
|
|||
|
|||
|
RE: character counter
moved
|
|
#4
|
|||
|
|||
|
RE: character counter
To permit user by typing more than 160 characters in a text field, set maxlength.
Code:
<html> <body> <form> <textarea rows="12" cols="60" wrap="virtual" onkeydown="readout.value=this.value.length" onkeyup="readout.value=this.value.length"> </textarea><br> CHARACTERS: <input name="readout" type="text" size="3"> </form> </body> </html> |
![]() |
| Viewing: Codewalkers Forums > Other Technologies > Client Side Things > character counter |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|