求2个JavaScript!
<html:form action="deleteUserAction.do" method="get">
<div align="center">
<table width="681" height="69" border="1" bgcolor="#dff1f9">
<tr>
<td height="28"><div align="center"><bean:message key="struts.addjsp.userId"/></div></td>
<td width="101"><div align="center"><bean:message key="struts.addjsp.userName"/></div></td>
<td width="91"><div align="center"><bean:message key="struts.addjsp.age"/></div></td>
<td width="91"><div align="center"><bean:message key="struts.addjsp.sex"/></div></td>
<td width="158"><div align="center"><bean:message key="struts.addjsp.email"/></div></td>
<td width="118"><div align="center"><bean:message key="struts.addjsp.qq"/></div></td>
<td width="118"><div align="center">删除用户</div></td>
</tr>
<logic:iterate id="all" name="user">
<tr>
<td width="82" height="28"><div align="center"><bean:write name="all" property="userId"/></div></td>
<td><div align="center"><bean:write name="all" property="userName"/></div></td>
<td><div align="center"><bean:write name="all" property="age"/></div></td>
<td><div align="center"><bean:write name="all" property="sex"/></div></td>
<td><div align="center"><bean:write name="all" property="email"/></div></td>
<td><div align="center"><bean:write name="all" property="qq"/></div></td>
<td width="118">
<div align="center">
<html:multibox property="deleteId" value="${all.userId}">
</html:multibox>
</div></td>
</tr>
</logic:iterate>
</table>
<html:submit property="action">
<bean:message key="struts.addjsp.button.add"/>
</html:submit>
<html:reset property="action" value="重置">
</html:reset>
<html:submit property="action" value="全部删除"/>
</div>
</html:form>
第1个:如果用户没选择<html:multibox>就按了<html:submit property="action">
<bean:message key="struts.addjsp.button.add"/>
</html:submit>就出现个"请输入要删除的信息"
第2个:按<html:submit property="action" value="全部删除"/>后<html:multibox>就全部选中了
这2个JavaScript应该怎么写呀?
<div align="center">
<table width="681" height="69" border="1" bgcolor="#dff1f9">
<tr>
<td height="28"><div align="center"><bean:message key="struts.addjsp.userId"/></div></td>
<td width="101"><div align="center"><bean:message key="struts.addjsp.userName"/></div></td>
<td width="91"><div align="center"><bean:message key="struts.addjsp.age"/></div></td>
<td width="91"><div align="center"><bean:message key="struts.addjsp.sex"/></div></td>
<td width="158"><div align="center"><bean:message key="struts.addjsp.email"/></div></td>
<td width="118"><div align="center"><bean:message key="struts.addjsp.qq"/></div></td>
<td width="118"><div align="center">删除用户</div></td>
</tr>
<logic:iterate id="all" name="user">
<tr>
<td width="82" height="28"><div align="center"><bean:write name="all" property="userId"/></div></td>
<td><div align="center"><bean:write name="all" property="userName"/></div></td>
<td><div align="center"><bean:write name="all" property="age"/></div></td>
<td><div align="center"><bean:write name="all" property="sex"/></div></td>
<td><div align="center"><bean:write name="all" property="email"/></div></td>
<td><div align="center"><bean:write name="all" property="qq"/></div></td>
<td width="118">
<div align="center">
<html:multibox property="deleteId" value="${all.userId}">
</html:multibox>
</div></td>
</tr>
</logic:iterate>
</table>
<html:submit property="action">
<bean:message key="struts.addjsp.button.add"/>
</html:submit>
<html:reset property="action" value="重置">
</html:reset>
<html:submit property="action" value="全部删除"/>
</div>
</html:form>
第1个:如果用户没选择<html:multibox>就按了<html:submit property="action">
<bean:message key="struts.addjsp.button.add"/>
</html:submit>就出现个"请输入要删除的信息"
第2个:按<html:submit property="action" value="全部删除"/>后<html:multibox>就全部选中了
这2个JavaScript应该怎么写呀?
...全文
相关推荐
python javascript C语言 三种递归求阶乘和
python javascript C语言 三种递归求阶乘和
javascript求素数.js
javascript求素数,可以求素数0.0. 放进网页里面,运行,然后就可以用了。
js2py:将 JavaScript 转换为 Python
js2py 将 JavaScript 转换为 Python。
gulp-java2js:通过 gulp 任务将 java 类转换为 javascript。 万岁!
gulp-java2js 通过 gulp 任务将 java 类转换为 javascript。 万岁!
js 实现 用JavaScript导出图像到Excel
js 实现 用JavaScript导出图像到Excel! 值得下载看看!资源免费,大家分享!!


Web 开发
