Basic html

Status
Not open for further replies.

kwokwai

In Runtime
Messages
168
<textarea rows="2" cols="4" name="comments">

The above html tag will display users a textarea with 4 columns and 2 rows, but I found that I can enter as many words as I want into the textarea.

There is a restriction tag for input textbox, like maxlength="12".
But I don't know why I can't apply maxlength to restrict the number of words that are allowed to be entered in the textarea!
 
ya you will need to write some javascript to do that. there is no maxlength attribute on a textarea
 
Status
Not open for further replies.
Back
Top Bottom