You can use jQuery#find()

$(this).find('a').css("color", "red");

That will turn all hyperlinks within "this" red.

-Hector


On Wed, Nov 19, 2008 at 8:17 PM, George <[EMAIL PROTECTED]> wrote:

>
> I meant all A links inside that <DIV> the one that is in $(this)
>
> On Nov 19, 11:14 pm, George <[EMAIL PROTECTED]> wrote:
> > you can do
> > $('a', $(this)).css("color", "red");
> >
> > But it will change all A links
> >
> > George
> >
> > On Nov 19, 7:18 pm, lwoods <[EMAIL PROTECTED]> wrote:
> >
> >
> >
> > > I have an action function where I have $(this).  Now I need to change
> the css
> > > for a link ( ) that is inside the $(this) .  How do I reference it?  In
> my
> > > example, the $(this) references a <div> and I want to change the text
> color
> > > in a   that is within this <div>.
> >
> > > ????????????????
> > > --
> > > View this message in context:
> http://www.nabble.com/Need-to-reference-an-object-enbedded-in-a-%24th...
> > > Sent from the jQuery General Discussion mailing list archive at
> Nabble.com.- Hide quoted text -
> >
> > - Show quoted text -

Reply via email to