1 <table cellpadding="0" cellspacing="0">
2 <thead>
3 <tr>
4 <td>用户名</td>
5 <td>密码</td>
6 <td>性别</td>
7 <td>
.</td>
8 </tr>
9 </thead>
10 <tbody>
11 <tr>
12 <td><input type="text" name="uname" ></td>
13 <td><input type="password" name="password" ></td>
14 <td><input type="text" name="sex" ></td>
15 <td>
</td>
16 </tr>
<tr>
<td>
<input type="button" name="query" value="增加" οnclick="queryAddSubmit()">
<input type="button" name="modif" value="修改" οnclick="queryModSubmit()">
<input type="button" name="delet" value="删除" οnclick="queryDelSubmit()">
</td>
</tr>
17 </tbody>
18 </table>
19</div>
20</form>
21<script language="javascript">
22 function queryAddSubmit()
23 {
24 document.forms[0].action="${req.contextPath}/gsp/healthCuleduAdrchiveOperUI.action?oper=add";
27 document.forms[0].submit();
28 }
29 function queryModSubmit()
30 {
31 if(!selectIsState()){return;}
32 document.forms[0].action="${req.contextPath}/gsp/healthCuleduAdrchiveOperUI.action?oper=mod";
35 document.forms[0].submit();
36 }
37 function queryDelSubmit()
38 {
39 if (!selectIsState()){
40 return;
41 }else{
42 if (confirm("确定删除此教育培训信息吗?")){
43 document.forms[0].action = "${req.contextPath}/gsp/healthCuleduAdrchiveOperUI.action?oper=del";
46 document.forms[0].submit();
47 }
48 }
49 }
50</script>
51</html>
52
一个form多个有选择的提交
最新推荐文章于 2021-12-31 15:23:19 发布