Holiday Notice: Support will be provided on a limited scale from December 24th, 2024, to January 2nd, 2025. Happy holidays and a wonderful New Year!


Topic: Form validation/max length

steve.hanzelman free asked 5 years ago


How do I set a maximum length for textarea and text inputs?

For example, I only want a MAX of 1000 characters being entered in a textarea.

Thanks! Steve


Mateusz Łubianka staff answered 5 years ago


Hi steve.hanzelman!

You can use HTML maxlength Attribute. Check out this link: https://www.w3schools.com/tags/att_textarea_maxlength.asp

Best regards,



Please insert min. 20 characters.

FREE CONSULTATION

Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.

Status

Answered

Specification of the issue

  • ForumUser: Free
  • Premium support: No
  • Technology: MDB jQuery
  • MDB Version: 4.9.0
  • Device: PC
  • Browser: Chrome, IE, Safari
  • OS: Windows
  • Provided sample code: No
  • Provided link: No