Like Karl said and here are the docs for the :not selector and the .not
method
http://docs.jquery.com/Selectors/not#selector
http://docs.jquery.com/Traversing/not#expr

--
Brandon Aaron

On Thu, May 15, 2008 at 10:17 PM, Karl Rudd <[EMAIL PROTECTED]> wrote:

>
> $('div.subNav').not('#myId').hide();
>
> or
>
> $('div.subNav:not(#myId)').hide();
>
> Karl Rudd
>
> On Fri, May 16, 2008 at 1:13 PM, [EMAIL PROTECTED]
> <[EMAIL PROTECTED]> wrote:
> >
> > Hi,
> >
> > Given a bunch of divs with class = "subNav", how do I write a jquery
> > expression to make all of their "display" attributes "none" except the
> > one with id, "myId"?
> >
> > Thanks, - Dave
> >
>

Reply via email to