Re:Online Forms
Posted: Sun Apr 18, 2004 6:25 am
how do i limit the number of characters entered in TEXTBOX and TEXTAREA elements of a webpage.
I tried using the maxlength="value" for TEXTBOX but IE's autocomplete easily filled in the text with size greater than the specified max value.
As for the TEXTAREA element the 'maxlength' does'nt even affect it.
So is it best to do this (at the client side) with Javascript? (Of course the server side script will have to check for this again)
I tried using the maxlength="value" for TEXTBOX but IE's autocomplete easily filled in the text with size greater than the specified max value.
As for the TEXTAREA element the 'maxlength' does'nt even affect it.
So is it best to do this (at the client side) with Javascript? (Of course the server side script will have to check for this again)