看起来字段的minlength
属性<input>
不起作用.
HTML5中是否还有其他属性可以帮助我设置字段值的最小长度?
我有一个html格式的文本类型字段'sessionid'.我希望用户只输入1-12的数字,而不是更多.如果输入0或13等,则返回错误.
这是html表单
Session Id
</td>
<td>
<input type="text" name="session id" />
Run Code Online (Sandbox Code Playgroud)
谢谢.请帮助.