jQuery操作一个列表,根据类别选出学校,点击学校出现院系,点击院系出现专业,然后链接至专业申请页面。
$("li.university").click(function(){
var id = $(this).attr("rel");
$.get("data.aspx?type=u&id="+id ,
function(html){$("#universityselect").html(html);});
});
$("li.universityselect").click(function(){
var id = $(this).attr("rel");
$.get("data.aspx?type=s&id="+id ,
function(html){$("#coursetype").html(html);});
});
$("li.course").click(function(){
//var id = $(this).attr("rel");
alert("dd");
//$.get("data.aspx?type=p&id="+id ,
//function(html){$("#
$("li.university").click(function(){
var id = $(this).attr("rel");
$.get("data.aspx?type=u&id="+id ,
function(html){$("#universityselect").html(html);});
});
$("li.universityselect").click(function(){
var id = $(this).attr("rel");
$.get("data.aspx?type=s&id="+id ,
function(html){$("#coursetype").html(html);});
});
$("li.course").click(function(){
//var id = $(this).attr("rel");
alert("dd");
//$.get("data.aspx?type=p&id="+id ,
//function(html){$("#