展开全部
function pageOnChange() {
document.frmPage.action = "worker.let?cmd=list&pageIndex="+document.frmPage.pageIndex.value;
return true;
}
<form name="frmPage" action="“ method="post" onsubmit="pageOnChange()">
<select name="pageIndex" >
<option value="">--请选择--</option>
<c:forEach var="i" begin="1" end="${total}" >
<option value="${i}">第${i}页</option>
</c:forEach>
</select>
<input type="submit" value="Go"/>
</form>
改成这样或者submit换成button
document.frmPage.action = "worker.let?cmd=list&pageIndex="+document.frmPage.pageIndex.value;
return true;
}
<form name="frmPage" action="“ method="post" onsubmit="pageOnChange()">
<select name="pageIndex" >
<option value="">--请选择--</option>
<c:forEach var="i" begin="1" end="${total}" >
<option value="${i}">第${i}页</option>
</c:forEach>
</select>
<input type="submit" value="Go"/>
</form>
改成这样或者submit换成button
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询