jQuery选择器用于选中需要操作的页面元素
语法1:jQuery(选择器表达式)
语法2:$(选择器表达式)
基本选择器
$("#id") ID选择器,指定id元素的对象
$("标签") 元素选择器,选择指定标签名的选择器
$(".class") 类选择器,选中拥有指定css类的元素
$("S1,S2,SN") 组合选择器,对元素进行组合
层叠选择器
$("ancestor descendant") 后代选择器
$("ancestor>descendant") 子选择器
$("pre~siblings") 兄弟选择器
属性选择器
$("selector[attribute=value]") 选中属性值等于具体指的组件
$("selector[attribute^=value]") 选中属性值以某值开头的组件
$("selector[attribute$=value]") 选中属性值以某值结尾的组件
$("selector[attribute*=value]") 选中属性值包含某值的组件