Craigieboy
Programmer
Hi all.
I would be eternally grateful if someone could provide code on how to do the following...
I have an Intranet page with a one-line textbox. I require the user to be only allowed to enter 100 characters into this textbox. The validation, etc on this is straight forward to implement.
What I would like to do is add a counter at the side of the textbox that counts from 100 down to 0 as the user types - and then blocks the user from infilling anymore when at 0. Then, should the user delete any characters the counter rises again.
My goal is to provide the user with a constant visual on how much space they have in the textbox for further input.
I saw this done ages and ages ago and without checking the source code presumed it was JavaScript that was handling it.
With thanks in advance for any help,
Craig
I would be eternally grateful if someone could provide code on how to do the following...
I have an Intranet page with a one-line textbox. I require the user to be only allowed to enter 100 characters into this textbox. The validation, etc on this is straight forward to implement.
What I would like to do is add a counter at the side of the textbox that counts from 100 down to 0 as the user types - and then blocks the user from infilling anymore when at 0. Then, should the user delete any characters the counter rises again.
My goal is to provide the user with a constant visual on how much space they have in the textbox for further input.
I saw this done ages and ages ago and without checking the source code presumed it was JavaScript that was handling it.
With thanks in advance for any help,
Craig