Before you ask please READ THIS

#other-albums

edited October 2013 in Hypershot Posts: 4
Hi Apollo,

I had to convert the #other-albums nav to a drop down since there simply wasn't enough room to display them all at once.

Everything is working smoothly except I can't this line of js to remove the 'current' class. So it will highlight the current album properly and remove the 'current' class once a new album is selected. I suspect it's because I now have the 'a' nested inside the dropdown nav
Screen Shot 2013-10-29 at 3.19.44 PM.png
1644 x 1029 - 1M
Post edited by Air on

Comments

  • AirAir
    edited October 2013 Posts: 10,970
    Hello:-)

    Sorry for late answer.

    Your siblings doesn't exist:-) as now every a is in li, so it is alone. Code should look like this
    
                //highlight current album
                $(this).addClass('current').parent().siblings('li').find('a')
                    .removeClass('current');
    With regards.

    Post edited by Air on
  • Posts: 4
    Works perfect as expected. Thanks for everything.
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!