[jQuery] Re: Targeting elements with more than one class

2008-07-02 Thread jez_p

Thanks Mike - that was the first thing I tried.  I have since found a
stupid typo, and it now works of course.  *slaps forehead repeatedly*.

On Jul 2, 1:51 am, Mike Alsup <[EMAIL PROTECTED]> wrote:
> > Please excuse my noobiness, I just started playing with jQuery today
> > and I cannot seem to find the answer to this:
>
> > If you have elements with multiple classes, how do target just one
> > class?
>
> > For example:
>
> > blah blah blah
>
> > blah blah blah
>
> > blah blah blah
>
> > How do I target the 's with the class of "green"?
>
> > Thanks in advance.
>
> $('p.green')


[jQuery] Re: Targeting elements with more than one class

2008-07-01 Thread Mike Alsup

> Please excuse my noobiness, I just started playing with jQuery today
> and I cannot seem to find the answer to this:
>
> If you have elements with multiple classes, how do target just one
> class?
>
> For example:
>
> blah blah blah
>
> blah blah blah
>
> blah blah blah
>
> How do I target the 's with the class of "green"?
>
> Thanks in advance.

$('p.green')