On Sep 28, 7:38 am, BB <buchholz.bast...@googlemail.com> wrote:
> $("li:not(:has(a))").click( ... );
>
> would be the shortest!
>
> On 28 Sep., 05:06, Dave Methvin <dave.meth...@gmail.com> wrote:
>
> > > Attach a click event to:
> > > <li>List item without link</li>
>
> > > Do not attach click event to:
> > > <li><a href="">Link 1</a></li>
>
> > How about this?
>
> > $("li").not($("li:has(a)")).click( ... )
Sunday, September 28, 2008
[jQuery] Re: Find all
Perfect BB. Thanks to all for responding, It was very helpful.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment