如何限制表单输入框输入的字符的长度

1<input size="12" type="text"/>

可是却可以输入很长的字符,怎么限制长度为12
---------------------------------------------------------------

1<input maxlength="12" name="textfield" type="text"/>
Published At
Categories with Web编程
comments powered by Disqus