Thanks Josh,

I'll give that one a go. I also found I could do it using 'find', but
your solution looks a little bit tighter.

Phil

On Jan 19, 1:09 am, "Josh Nathanson" <[EMAIL PROTECTED]> wrote:
> Try $("li", this) - it says "look in the context of this for all li
> elements."
>
> -- Josh
>
> ----- Original Message -----
> From: "Philboi" <[EMAIL PROTECTED]>
> To: "jQuery (English)" <jquery-en@googlegroups.com>
> Sent: Thursday, January 17, 2008 9:37 PM
> Subject: [jQuery] Selectors with this keyword
>
> > Hi Guys,
>
> > What im after is using selectors with the 'this' keyword. I imagine
> > this is a fairly common example, but I cant seem to get the syntax
> > right. Example:
>
> > $("ul:has(li)")  except i want to use something like: $(this:has(li))
>
> > Thanks

Reply via email to