zoukankan
html css js c++ java
级联操作绑定事件
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){$("#
查看全文
相关阅读:
【题解】【字符串】【BFS】【Leetcode】Word Ladder
Python CSV模块处理文件读写
【题解】【排列组合】【回溯】【Leetcode】Generate Parentheses
【题解】【链表】【Leetcode】Linked List Cycle II
【题解】【排列组合】【回溯】【Leetcode】Gray Code
【题解】【位操作】【Leetcode】Single Number II
【题解】【数组】【查找】【Leetcode】Search Insert Position
JAVAWEB的Listener
Hibernate的检索方式--查询数据的方式
Hibernate的批量处理和分页技术、投影技术
原文地址:https://www.cnblogs.com/luluping/p/1216417.html
最新文章
Nginx没有启动文件、nginx服务不支持chkconfig、nginx无法自启
Vmware上安装Linux(centos7)图文教程
Centos7下安装mysql
centos7安装python3.7
Linux下FastDFS分布式存储-总结及部署记录
centos7配置国内yum源
Python3实现发送邮件和发送短信验证码
史上最全的微信小程序代码大全
spring boot项目集成zuul网关
spring boot中集成Redis
热门文章
IDEA中Git的使用
WebMvcConfigurerAdapter在2.x向上过时问题
Druid数据源的使用
MyBatis逆向工程中的Mapper接口以及Example的实例函数及详解
eureka和feign的使用
pageHelper使用时的注意点
spring boot中使用mybatis的注意点!!!
【题解】【区间】【二分查找】【Leetcode】Insert Interval & Merge Intervals
Ensemble Approaches分类技术
【题解】【矩阵】【DP】【Leetcode】Minimum Path Sum
Copyright © 2011-2022 走看看