.show() is setting the display css property, not effecting the visibility. You can use display:none (analogous to .hide() ) in the first place, and show will work, or if you want use visibility, simply do .css('visibility', 'visible') in place of show();
- Richard On 10/23/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > > Hi, > > I have this DIV > > <div id="contextMenu" style="position:absolute; visibility:hidden;"> > <div id="editTitle" class="contextMenuItem">Edit Module Title</ > div> > <div id="myspace" class="contextMenuItem">Export MySpace HTML</ > div> > </div> > > Notice that I have visibility = hidden as I want this for the default > state. However, after the page loads, and I call > > $('#contextMenu').show(); > > the DIV does not appear. Where am I going wrong? > > Thanks, - Dave > >