Form validation/max length


Topic: Form validation/max length

steve.hanzelman 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
  • 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