[jQuery] Re: How to logically AND selectors?

2008-01-30 Thread Karl Rudd
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: Karl Rudd On Jan 31, 2008 1:23 PM, Erik Beeson <

[jQuery] Re: How to logically AND selectors?

2008-01-30 Thread Erik Beeson
> > You're looking for:.selector1.selector2.selector3 > But, that's only if selector1, selector2, and selector3 are all classes, yes? --Erik

[jQuery] Re: How to logically AND selectors?

2008-01-30 Thread Erik Beeson
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 > > select

[jQuery] Re: How to logically AND selectors?

2008-01-30 Thread Karl Rudd
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