<script language="javascript">
function check(){
var na=document.forms[0].name.value;
if(na==""){
alert("html:form 1 fail!");
//document.all.action.disabled="false";//使提交按钮失效property="action"
return false;
}
return true;
}
function check(){
var na=document.forms[0].name.value;
if(na==""){
alert("html:form 1 fail!");
//document.all.action.disabled="false";//使提交按钮失效property="action"
return false;
}
return true;
}
</script>
<html:form action="/testStruts" focus="name" onsubmit="return check();">
<input type="button" onclick="javascript:isDigit('a');">
姓名:<html:text property="name" onfocus="javascript:calendar();"/>
地址:<html:text property="address"/>
<html:submit property="action" value="提交"/>
</html:form>
<input type="button" onclick="javascript:isDigit('a');">
姓名:<html:text property="name" onfocus="javascript:calendar();"/>
地址:<html:text property="address"/>
<html:submit property="action" value="提交"/>
</html:form>


















