Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

TextArea

Participant ,
Feb 25, 2009 Feb 25, 2009
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.
TOPICS
Advanced techniques
441
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Feb 25, 2009 Feb 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?
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Feb 25, 2009 Feb 25, 2009
LATEST
it's just my client. he just want to see up to 20 rows in a textarea
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources