jQuery 选择器
来源:互联网 发布:新手如何修眉 知乎 编辑:程序博客网 时间:2024/05/22 17:43
一、基本选择器
二、层次选择器
三、过滤选择器
1、基本过滤选择器
2、内容过滤选择器
3、可见性过滤选择器
4、属性过滤选择器
四、表单选择器
1、基本表单选择器
input
元素 $(“:text”) 选取所有type=”text”的 input
元素 $(“:password”) 选取所有type=”password”的 input
元素 $(“:radio”) 选取所有type=”radio”的 input
元素 $(“:checkbox”) 选取所有type=”checkbox”的 input
元素 $(“:submit”) 选取所有type=”submit”的 input
元素和button
的元素 $(“:reset”) 选取所有type=”reset”的 input
元素和button
的元素 $(“:button”) 选取所有type=”button”的 input
元素和所有标签为button
的元素 $(“:image”) 选取所有type=”image”的 input
元素 $(“:file”) 选取所有type=”file”的 input
元素2、表单元素过滤选择器
input
和 button
元素 $(“:disabled”) 选择所有禁用(即设置了disabled=”disabled”)的 input
和 button
元素 $(“:selected”) 选择所有被选中下拉列表 选项 $(“:checked”) 选择所有被选中的复选框 或单选 按钮元素五、jQuery CSS 选择器
jQuery CSS 选择器可用于改变 HTML 元素的 CSS 属性。
语法: jQuery选择器.css(“css属性”, “css属性值”);
$("div").css("background-color","red");
六、jQuery查找父、子、兄弟节点的方法
七、参考资料
jQuery选择器大全
jQuery选择器总结
w3school-jQuery 参考手册 - 选择器
阅读全文
0 0
- CSS选择器,jQuery选择器
- jQuery选择器 CSS选择器
- JQuery选择器(选择器简介)
- jQuery选择器 基本选择器
- jQuery选择器 层次选择器
- jQuery选择器 表单选择器
- Jquery选择器-基本选择器
- jQuery选择器之类选择器
- jQuery选择器之类选择器
- jQuery选择器之类选择器
- Jquery选择器--过滤选择器
- JQuery选择器
- jquery 选择器
- Jquery选择器
- jQuery选择器
- jQuery 选择器
- JQuery选择器
- JQuery选择器
- 从链表中读取文件和写文件
- iOS远程真机之iOS开发的另类神器:libimobiledevice协议库
- C++,const与define的区别
- 中兴新支点操作系统上如何查找文件
- Spring boot 整合CXF开发web service
- jQuery 选择器
- 设计模式初探-责任链模式
- HotSpot VM中的垃圾回收器(J2SE 5.0)
- C语言位运算符及作用:与、或、异或、取反、左移和右移
- Java中创建对象的5种方式
- JS实现倒计时效果
- Scala 中的文件操作
- H5面试——HTTP状态码
- leetcode--Sudoku Solver