$('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 >