jQuery中基本过滤选择器,是不是只能以dom元素为基础,不能
问题描述:
jQuery中基本过滤选择器,是不是只能以dom元素为基础,不能以其它选择器为基础,也就是不能接在其它选择器后面?
答
是的,因为没那种需要
答
对楼主的表达有点点不解。
$("#nikan").find("input");//过滤input
$("#nikan input:text");//过滤type等于text的input标签
$("#nikan div input").not(":checkbox");//不用解释了吧。过滤分方法与选择器,
答
属性,id,样式选择器等可以搭配使用
$('div.ok[rel="xxx"]')
答
不是的,很多选择器可以一起使用的