当前位置:编程学习 > JAVA >>

关于struts1的<html:select>问题的!

<html:select property='insurantList[${status.index}].identityType'  value="${insurant.identityType}" onchange="javascript:checkIdentityType(${status.index})">
<html:option value='1'>身份证</html:option>
<html:option value='2'>护照</html:option>
<html:option value='3'>军官证</html:option>
<html:option value='4'>港澳通行证</html:option>
<html:option value='5'>台胞证</html:option>
<html:option value='6'>驾驶证</html:option>
<html:option value='7'>其他证件</html:option>
</html:select>
</td>
<td class="td_title"><input type="text" name="insurantList[${status.index}].identityNo" value="${insurant.identityNo}" onblur="checkIdentityCard(this,'${tableId}','${status.index}');" maxlength="20"/></td>

下拉菜单如果是身份证value1的话就对后面的input type="text" 进行判断所输入的是否是18位,不是的话提示请重新输入!js怎么写呀! struts html javascript input --------------------编程问答-------------------- if(insurantList.value.length <18)

......... --------------------编程问答-------------------- 不可以把!怎么去到value 值1呢!而且是对后面的text做的判断呢
补充:Java ,  Web 开发
CopyRight © 2012 站长网 编程知识问答 www.zzzyk.com All Rights Reserved
部份技术文章来自网络,