Topic: Form validation/max length

steve.hanzelman free asked 4 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 4 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