Using HTC technology to limit the length of the contents of multi-line input boxes

zhaozj2021-02-08  249

/ * Tofu production is a boutique http://www.asp888.net tofu technology station, please keep the full copyright information * / We know that there must be a constraint for the input of the text input box, we can pass very simple MaxLength limits the input length of Text and Password types, but when we use MAXLENGTH attributes to TextArea, we regret that there is no way to do this attribute in Textarea? The answer is yes, there is! That is to use HTC technology, what is HTC ?? Simply, HTC is HTML Component, tofu speaking ability is not strong, let's take a look at the examples of Test.html: