Form validation/max length


Topic: Form validation/max length

steve.hanzelman asked a year 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 a year 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.
Status

Answered

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