点击某个html控件促使跳转菜单提交
function MM_jumpMenu(targ,selObj,restore){
//v3.0
document.form2.submit();
}

function doPageIndex(obj){
document.form2.PageIndex.options[obj-1].selected=true; document.form2.PageIndex.onchange();
}

<a style="cursor:hand " onClick="doPageIndex(1)">First</a>
<select name="PageIndex" >
<%
       for (int j = 1;j <= totalPage;j++){
        String SelStatus = "";
        if (PageIndex == j){
                     SelStatus = "selected";
        }
        else{
         SelStatus = "";
        }
        out.println("<option value="+j+" "+SelStatus+">" + j + "</option>");
       }
       %>
</select>

相关文章:

  • 2022-02-01
  • 2021-12-23
  • 2021-09-08
猜你喜欢
  • 2021-11-12
  • 2022-12-23
  • 2022-12-23
  • 2021-08-19
  • 2022-01-19
  • 2021-10-08
  • 2021-05-16
相关资源
相似解决方案