$("#button").click(function(){
var form=$("#registerform");
form.prop("action","http://localhost:8080/ssmy/CreditController/intiqu.do");
form.submit();
});
//对查询按钮定死状态 从后台查出 使用隐藏域
$("#status").val($("#statushidden").val());
});
<div id="head">
<form id="registerform" action="" method="post" enctype="multipart/form-data">
<div class="search-box" style="width:100%;height:40px;">
<label> 登录名: </label>
<input type="text" name="loginName" id="loginName" />
<label style="margin-left:10px;">身份证:</label>
<input type="text" name="IDCard" id="IDCard" />
<label style="margin-left:10px;"> 提交状态:</label>
<select id="status" name="status" style="width:100px;height:20px;">
<option value="">全部</option>
<option value="0">已提交</option>
<option value="1">未提交</option>
</select>
<input type="button" id="button" value="查询" style="width:65px;height:22px;margin-left:20px;"/>
<input type="submit" id="exports" value="导出" style="width:65px;height:22px;margin-left:20px;"/>
</div>ss
<input type="hidden" name="statushidden" id="statushidden" value="${status }" />
<table border="0" cellpadding="0" cellspacing="0">
<tr style="width:100%; height: 50px;">
<td>
<input type="checkbox" id="SelectAll" name="SelectAll" οnclick="selectAll();" style="margin-right:5px;"/>全选</td>
<td>序列</td>
<td >登录名</td>
<td >登录密码</td>
<td >确认密码</td>
<td >身份证号</td>
<td >固定电话</td>
<td >手机号码</td>
<td >邮箱</td>
<td >居住地址</td>
<td id="address">提交状态</td>
<td >创建时间</td>
<td >操作</td>
</tr>
<c:forEach var="credit" items="${creditVOList}" varStatus="status">
<tr style="width: 300px;">
<td><input type="checkbox" name="creditIdbox" id="creditIdbox" value="${credit.creditId }"></td>
<td>${status.index}</td>
<td>${credit.loginName}</td>
<td>${credit.loginPwd}</td>
<td>${credit.againPwd}</td>
<td>${credit.IDCard}</td>
<td>${credit.fixedTelephoneNumber}</td>
<td>${credit.telephoneNumber}</td>
<td>${credit.email}</td>
<td id="address">${credit.address}</td>
<td>${credit.status ==0 ? '已提交':'未提交'}</td>
<td>${creditVO.createtime}</td>
<td>
<a href="http://localhost:8080/ssmy/CreditController/deleteuser.do?creditIdbox=${credit.creditId}">删除</a>
</td>
</tr>
</c:forEach>
</table>
<c:if test="${empty creditVOList }">
没有任何员工信息.
</c:if> <br/>
<input type="button" value="删除" id ="deleteuser" >
<input type="text" name="username"/>
<input type="file" name="uploadFile"/>
<input type="submit" id="uploadFile" name="开始上传文件" value="开始上传文件"/>
</form>
<a href="http://localhost:8080/ssmy/CreditController/downloadFile.do?fileName=inputik201612061447.JPG">下载文件 </a><br />
</div>
</body>
</html>