$(" div:first")
|
所有div元素中第一个div
|
$(" div:last")
|
所有div元素中最后一个div
|
$(" input:not(.myclass)")
|
不是 class为myclass 的<input>元素
|
$(" input:even")
|
索引为偶数的input
|
$(" input:odd")
|
索引为偶数的input
|
$("input:eq(1)")
|
索引为1的input——————index从0开始
|
$("input:gt(1)")
|
索引大于1的input
|
$("input :lt(1)")
|
索引小于1的input
|
$(":header")
|
所有的<h1> <h2> <h3>......
|
$("div:animated")
|
正在执行动画的<div>
|
$("div:contains('我')") |
含有文本‘我’的div
|
$("div:empty")
|
空的div
|
$(" div :has(p)")
|
含有<p>的<div>
|
$("div:parent")
|
含有子元素的<div>
|
$(":hidden")
|
所有不可见元素
|
$("div:visible")
|
所有的可见的<div>
|
$(" div[title=test]")
|
title为test的<div>
|
$ ("div [title!=test]")
|
title不为test的<div>
|
$(" div[title^=test]")
|
title以“test”开头的div
|
$ ("div [title$=test]") |
title以“test”结束的div
|
$(" div[title*=test]")
|
title含有test的div
|
$("div[id][title$=test]")
|
组合多条件选择
|
:nth-child(index/even/odd/equation)
|
index从1开始
|
:first-child :last-child :only-child
| |
$("#form1 :enabled")
| |
$("input:checked")
|
所有被选中的<input>元素
|
$("select:selected")
|
所有被选中的<select>元素
|
$(":input")
$(":text")
$(":password")
$(":radio") $(":checkbox") |
所有<input> <textarea><select><button> 元素
所有单行文本框
所有密码框
所有单选框
所有复选框
|
$(":button")
$(":file") $(":hidden") |
所有按钮
所有上传域
所有不可见元素
|
$(":submit")
$(":image") $(":reset") |
所有的提交按钮
所有图像按钮
所有重置按钮
|
jquery 属性过滤器
最新推荐文章于 2023-07-13 01:14:46 发布