0
<textarea
  type="text"
  maxlength="300"
  />

maxlength is not restricting me from entering more than 300 characters in Chrome.

Anupam
  • 1
  • 1
  • 2

1 Answers1

0

The maxlength attribute is not standard for in HTML 4.01. It is defined in HTML5. You can try to control the maxlength using javascript code. Read this answer for implementing it using javascript:https://stackoverflow.com/a/16911346/1666800

Community
  • 1
  • 1
Vahid Farahmandian
  • 6,081
  • 7
  • 42
  • 62