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

TextArea

Participant ,
Feb 25, 2009 Feb 25, 2009

Copy link to clipboard

Copied

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

Views

328

Translate

Translate

Report

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

Copy link to clipboard

Copied

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?

Votes

Translate

Translate

Report

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

Copy link to clipboard

Copied

LATEST
it's just my client. he just want to see up to 20 rows in a textarea

Votes

Translate

Translate

Report

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
Documentation