Skip to main content
Inspiring
February 25, 2009
Question

TextArea

  • February 25, 2009
  • 2 replies
  • 431 views
How can I limit a user input into a textarea by 20 rows? For example I'm typing in a textarea and I'm on the 20th row if I press enter or the next character will go to the 21st it won't allow the user to go to the next line.
This topic has been closed for replies.

2 replies

dchardAuthor
Inspiring
February 25, 2009
it's just my client. he just want to see up to 20 rows in a textarea
Inspiring
February 25, 2009
I don't think you can. You can however, limit them to x characters which is generally more useful because it might relate to a db field size.

What's so magic about 20 rows vs 21 anyhow?