Use maxlength in textarea

 Hello,

I use the following code:

<textarea name=\"c_opm\" rows=\"2\" cols=\"60\" maxlength=\"255\">" .
$c_opm . "</textarea>

when i use the HTML-validator the section over maxlength gives the error

 there is no attribute "MAXLENGTH"

I use this to limit the number off postions that the user can fill in, and
it works, but the attribute is not on
http://www.w3schools.com/tags/tag_textarea.aspr

Is it a general attribute or should it not be used?


H. Velthuis

Received on Wednesday, 2 May 2012 15:07:15 UTC