我想當選中一個值的時候利用JAVASCRIPT傳一個值到一個JSP或者JAVA上判斷再從數據表中取出它ID最大值+1請問怎么搞呢?不用ACTION.DO的,不是框架的<script type="text/javascript">function isSelected(value) {var bookcategorey;var bookcategorey = document.getElementById("bookcategorey");for(i=0;i<bookcategorey.length;i++){if(bookcategorey[i].selected==true){window.location.href="index.jsp?id=bookcategorey"; }}}</script><body><form name="form1" action="dengluceshi.jsp" method="post" ><select onchange="isSelected(this.value);" id="bookcategorey"> <option value="1">JAVA</option> <option value="2" >C#</option> <option value="3" >MARC數據</option> </select>?如果是AJAX該怎么寫,我沒學過AJAX呢,誰能發下代碼上來,感激不禁
添加回答
舉報
0/150
提交
取消