关于三级联动下拉的问题弄了一天实用是还不行
以下是我的代码.
数据库三个表中分类已有.
英语
初级
1班
2班
23
3班
ds
23
ss
232311
23
2323
语文
s
2班
-----------------------
<!--#include file= "conn.asp "-->
<%
dim rs
dim sql
dim count
set rs=server.createobject( "adodb.recordset ")
sql = "select * from SmallClass order by SmallClassID asc "
rs.open sql,conn,1,1
%>
<script language = "JavaScript ">
var onecount;
subcat = new Array();
<%
count = 0
do while not rs.eof
%>
subcat[ <%=count%> ] = new Array( " <%= trim(rs( "SmallClassName "))%> ", " <%= trim(rs( "BigClassID "))%> ", " <%= trim(rs( "SmallClassID "))%> ");
<%
count = count + 1
rs.movenext
loop
rs.close
%>
onecount= <%=count%> ;
function changelocation(locationid)
{
document.myform.SmallClassID.length = 1;
var