Form validation/max length

Topic: Form validation/max length

steve.hanzelman asked 3 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 3 years ago

Hi steve.hanzelman!

You can use HTML maxlength Attribute. Check out this link:

Best regards,

Please insert min. 20 characters.


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



Specification of the issue
  • User: 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