<input name="show" type="button" id="show" value="查看" onclick="location.href='?act=xsjg&title=批量修改&id=1&year=&month=' />year 和month 要从下拉列表中获得
document.getElementById("year").vaule如何把它加到里面

解决方案 »

  1.   

    可以写一个函数,onclick="show()"function show()
    {
        var year = document.getElementById("year").vaule;
        var month = document.getElementById("month").vaule; 
        location.href='?act=xsjg&title=批量修改&id=1&year="+year+"&month="+month+"';
    }这代码我没运行过,不知道可不可以,
      

  2.   

    2楼的方法OK另外,<% %>中间添代码不知道可不可以————仅仅是个人想法,没试过……