works great but now with the subs.hide() the toggle on the category no
longer works :(
ricardo your the man. thank you so much.
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 possib
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
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
except on IE 6 and 7. FF and Safari both hide the main photo in the
gallery when clicking on collapsing menu
only problem is upon toggling of this menu it also hides the photos in
my jquery gallery
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"jQuery (English)" group.
To post to this group, send email to jquery-en@googleg
Thanks again richardo, here is the final script that works great
$(document).ready(function(){
var subs = $('.menu > ul ul');
subs.hide();
$('.menu > ul > li a').click(function(){
$(this).next('ul').toggle();
});
});
Hi,
Try removing all the comments in the javascript, Google Groups adds
line breaks that can cause errors. Also I forgot to wrap 'this' in
jQuery:
var subs = $('.menu > ul ul');
subs.hide();
$('.menu > ul > li a').click(function(){
subs.hide();
$(this).next('ul').
ricardobeat,
thank you very much for your response. This is obviously my first time
working with jquery. I have translated your code to my page with some
unexpected results. When I click on any .menu > ul > li a all the page
does is hide the image in my main gallery which is also ran by jquery.
I
You don't need any of that stuff if you have jQuery:
1. it handles events for you
2. it selects element with CSS3 selectors
3. built-in function for hide/show and effects
This (not tested) should do the same as your code:
$(document).ready(function(){
var subs = $('#container > ul ul');
I removed
toggleMenu.addEvent(window, 'load', function(){toggleMenu.init
('menu','hidden');});
and now works as I want it to in FF3
12 matches
Mail list logo