A couple ways:
$(this).find("> span")
or $(this).children("span")
or $("> span", this)

The second one will probably work best.

--John



On Thu, Mar 26, 2009 at 9:41 AM, hamazasp.avetisyan
<[email protected]> wrote:
>
> Hi,
>
> Let's look at this sample
>
> $("div > span").css("border", "3px double red");
>
> This works ok.
>
> I need to do something like above with 'this'. I can not find a good
> syntax for that.
>
> $(this , "> span").css("border", "3px double red"); not works
> $("this > span").css("border", "3px double red"); not works
> ......
>
> How can I fix the problem ?
>
>
> Thanks
> Hamazasp Avetisyan
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"jQuery Development" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/jquery-dev?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to