Use maxlength in textarea


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

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

H. Velthuis

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