Textarea more then assigned

Why does this textarea have more than 10 rows even though only 10 were assigned.


1 Like

Hi there @Stribor45 the codepen you posted is empty unfortunately.
If you actually post the code I’m sure someone will be able to help you.


Sorry my bad :slight_smile:

Assigned 4 rows yet I have 5 rows and can keep going…


1 Like

By default textareas are resizible in modern browsers.

So the rows/cols numbers becomes the current size. :slight_smile:


Meaning as per my example I should have min 4 rows(no less than 4)?

Sorry, I didn’t mean min-size, more like the loading size. Please see the Mozilla Dev link.

Was just editing the wording. :slight_smile:

1 Like

Thank you

1 Like

I see four rows not five.

The number of visible text lines for the control.

I think you may be confusing “visible” with “possible”

maxlength HTML5
The maximum number of characters (Unicode code points) that the user can enter. If this value isn’t specified, the user can enter an unlimited number of characters.

AFAIK, there is no such thing as a “maxrows”. If your intent is to prevent a novella from being submitted, a sane maxlength should do it as far as for the client side UI. You will probably still want to have something server side to ensure the limit is enforced.

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.