I know the input have the maxlength, but I would like to have minlength as my personal application for define, can I have this abilities? of course, the behavior is implemented by javascript, instead of the browser, can I do so?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Yes, you can do that.
To make it validate with HTML5, prefix your custom attribute with
data-.You can get the
minlengthattribute in JavaScript with…