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').show();
    });

- ricardo

On Nov 25, 1:47 pm, firstarsbrnwhite <[EMAIL PROTECTED]> wrote:
> 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 don't understand this since nothing in the gallery is a parent
> of .menu. See a live example here:
>
> http://www.ryanvosburg.com/portfolio/blackcreek/index.html
>
> I look at your code and it all makes sense to me and should
> theoretically work. I even tried a few different variations using
> the .toggle command with no luck... :(

Reply via email to