[jQuery] Re: Making all ids invisible except one

2008-05-15 Thread Brandon Aaron
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();

[jQuery] Re: Making all ids invisible except one

2008-05-15 Thread Karl Rudd
$('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" attrib