FG1
12-03-2002, 03:52 AM
Is there the equivalent of the Maxlength attribute in a text input tag for the Textarea tag?
Thanks for any help.
FG
Thanks for any help.
FG
|
Click to See Complete Forum and Search --> : Maxlength in TextArea FG1 12-03-2002, 03:52 AM Is there the equivalent of the Maxlength attribute in a text input tag for the Textarea tag? Thanks for any help. FG Stefan 12-03-2002, 05:47 AM No. http://www.w3.org/TR/html4/interact/forms.html#edef-TEXTAREA But you could use eg JavaScript to trim it if it gets too long before submitting. Even better (ie always working) would be to trim it server side. FG1 12-03-2002, 08:09 AM Thanks Stefan As it is a fairly complex Database system I need to let the client know that he is running out of space. I will look into trapping the keypress event in the text area and throwing a wobbly if they go over the limit. FG ecross 12-03-2002, 06:12 PM Stefan is right. The Maxlength attribute will not work even if you try it. webdeveloper.com
Copyright Internet.com Inc., All Rights Reserved. |