<tr>
<td width="165" height="29" valgin="top" background="images ne-2.jpg">描述 :</td>
<td width="250" height="29"> <html:textarea property="description"/> <html:errors property="description"/></td>
</tr>这里的textArea是Struts Text Area
应该怎么做
请指点一下,比如说长度小于20?
<td width="165" height="29" valgin="top" background="images ne-2.jpg">描述 :</td>
<td width="250" height="29"> <html:textarea property="description"/> <html:errors property="description"/></td>
</tr>这里的textArea是Struts Text Area
应该怎么做
请指点一下,比如说长度小于20?
JAVASCRIPT
在用户注册页面是一个form
我需要检测密码长度,如果小于6位报错
-------------------------------
JAVASCRIPT 前台检验
检测用户名,如果有重名,报错
请问应该怎么做?代码写在哪里
----------------------------
VALIDATE框架
长度的判断可以用js阿
密码长度可以在提交按纽上
<script>
function check(){
if(document.forms[0].description.value.length<6)
alert("密码小于6位");
}
</script>