Of course: $(document).ready(function(){ var subs = $('.menu > ul ul'); subs.hide(); $('.menu > ul > li a').click(function(){ subs.hide(); $(this).next('ul').toggle(); }); });
On Dec 4, 10:32 am, firstarsbrnwhite <[EMAIL PROTECTED]> wrote: > Think it is possible to make my menu close the previous tab when a new > one is opened using Jquery? This was only having one open at a time. > > On Nov 25, 7:09 pm, ricardobeat <[EMAIL PROTECTED]> wrote: > > > that's odd. Try using a minified (instead of packed) version of your > > galleria.js > > > On Nov 25, 6:16 pm, firstarsbrnwhite <[EMAIL PROTECTED]> wrote: > > > > except on IE 6 and 7. FF and Safari both hide the main photo in the > > > gallery when clicking on collapsing menu