React TextBox - Limit the String Length

To limit the string length, assign an integer number to the maxLength property. By default, the string length is unlimited.

JavaScript
  • $(function() {
  • $("#textBoxContainer").dxTextBox({
  • maxLength: 10
  • });
  • });
See Also