function aa(f){
if(a.dd.value.length>9){
return false;
}
if(a.dd.value==''){
return false;
}
return ture;}
<input type="text" name="dd" onlick="return aa(document.form2);">
if(a.dd.value.length>9){
return false;
}
if(a.dd.value==''){
return false;
}
return ture;}
<input type="text" name="dd" onlick="return aa(document.form2);">
改成return true;
呵呵
如果返回的是false是不会提交的,返回true会提交