You're looking for:
.selector1.selector2.selector3
Notice there are no spaces between the selectors.
Karl Rudd
On Jan 31, 2008 1:12 PM, Kynn Jones [EMAIL PROTECTED] wrote:
Hi. The docs describe selectors of the form
selector1, selector2, selector3
as matching the combined results
Generally, just run them together with no space.
A div tag with ID foo and class bar: div#foo.bar
Any tag with classes class1 and class2: .class1.class2
etc
Hope it helps.
--Erik
On 1/30/08, Kynn Jones [EMAIL PROTECTED] wrote:
Hi. The docs describe selectors of the form
selector1,
You're looking for:.selector1.selector2.selector3
But, that's only if selector1, selector2, and selector3 are all classes,
yes?
--Erik
Yes, of course. As you demonstrated, if you want to select by id as
well then you put the id first. So conceivably you could write
something like:
p#anId.aClass.anotherClass.stillAnotherClass
And it would only match elements like this:
p id=anId class=stillAnotherClass aClass
4 matches
Mail list logo