我想当选中一个值的时候利用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
提交
取消