日期:2014-05-17 浏览次数:20689 次
<script type="text/javascript"> function oneCateChange() { var catID = document.getElementById("oneCate").value; var docLibID_PUB = document.getElemnetById("docLib_PUB").value; /*var url="compareProgram.jsp?catID="+catID; location.href = url;*/ $.ajax( { type : "POST", url : "compareProgram.jsp", data : "catID=" + catID + "&docLibID_PUB=" + docLibID_PUB, }); } </script>
<td> 一级栏目: </td> <td> <select id="oneCate" onchange="oneCateChange()"> <option value=""> 请选择栏目 </option> <% for (int i = 0; i < cats.length; i++) { category = cats[i]; %> <option value="<%=category.getCatID()%>"> <%=category.getCatName()%> </option> <% } %> </select> </td> <%if(catList.size()>0){%> <td> 二级栏目 </td> <td> <select id="twoCate"> <% System.out.println(catList.size() + "***"); for (int i = 0; i < catList.size(); i++) { category = catList.get(i); %> <option value="<%=category.getCatID()%>"> <% System.out.println(category.getCatID());%> <%=category.getCatName()%> </option> <% System.out.println(category.getCatName()); } %> </select> </td> <%} %>