我的form中有一个提交按钮,我想在提交时将表单里的内容(也就是条件区)全部隐藏掉,页面只显示提交后的结果<table>
<br>
<form method=POST action=ticket_no_print.jsp name="form1" onSubmit="return doSubmit(this)">
<div >
<input type = hidden name = works value = "S2">
<tr>
<td class=w3dFormR nowrap><input size = 5 type='checkbox' name='checkdate' value='checkedDate' >by Date</td>
<td nowrap class=w3dFormR> From Date :<%=getDateHtml("fromDate",fromDate,10)%></td>
<td nowrap class=w3dFormR> To Date :<%=getDateHtml("toDate",toDate,10)%></td>
<td nowrap class=w3dFormR>Part No:
<input type=text name=partno value='<%=part_no%>' SIZE=8 >
<input type=button value=' * ' onClick='w3d_popUpOpen("../common/select_part_no.jsp", "400", "400","yes","partno");'></td>
</tr>
<tr>
<td nowrap class=w3dFormR>WO ID:
<input type=text name=woId value='<%=wo_id%>' SIZE=8 >
<input type=button value=' * ' onClick='w3d_popUpOpen("../common/select_wo_id.jsp", "400", "400","yes","woId");'>
</td>
<td nowrap class=w3dFormR>Ticket No:<input name = ticketNo type = text value ='' size = '20'></td>
<td> <input type="submit" ></td>
</tr>
</form>
</table>
<br>
<form method=POST action=ticket_no_print.jsp name="form1" onSubmit="return doSubmit(this)">
<div >
<input type = hidden name = works value = "S2">
<tr>
<td class=w3dFormR nowrap><input size = 5 type='checkbox' name='checkdate' value='checkedDate' >by Date</td>
<td nowrap class=w3dFormR> From Date :<%=getDateHtml("fromDate",fromDate,10)%></td>
<td nowrap class=w3dFormR> To Date :<%=getDateHtml("toDate",toDate,10)%></td>
<td nowrap class=w3dFormR>Part No:
<input type=text name=partno value='<%=part_no%>' SIZE=8 >
<input type=button value=' * ' onClick='w3d_popUpOpen("../common/select_part_no.jsp", "400", "400","yes","partno");'></td>
</tr>
<tr>
<td nowrap class=w3dFormR>WO ID:
<input type=text name=woId value='<%=wo_id%>' SIZE=8 >
<input type=button value=' * ' onClick='w3d_popUpOpen("../common/select_wo_id.jsp", "400", "400","yes","woId");'>
</td>
<td nowrap class=w3dFormR>Ticket No:<input name = ticketNo type = text value ='' size = '20'></td>
<td> <input type="submit" ></td>
</tr>
</form>
</table>
通过隐藏域提交就可以了