Is there a difference between "span: first" and "span: first" in JQuery Selectors?
1 answer
One has a descendant selector in the middle.
span:first
Will select "All span elements that: the first pseudo-class belongs to"
span :first
Selects "All elements that have: the first pseudo-class applied to them AND that derive from a span element"
However, not really: the first pseudo-class. You could mean: first-child ,: first-line, or: first letter.
(Oh :first
- this is jQuery specific stuff that explains why SelectOracle didn't know about this)
+7
a source to share