The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript help with some jquery/javascript please

  • This topic is empty.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
  • #40203


    I found the simplest, IE compatible, accordion I could find and it works perfect except for 2 ‘small’ things. I’m hoping a javascript guru can help me out…I’m sure I’m just screwing up the syntax :(

    Please check my page –

    There are 2 issues with the navigation on the left:

    1) I need the background color to remain when open or active
    2) If you click from tab to tab the icons change like they’re supposed to but try click ONE tab open and closed…the icon remains at the ‘expanded’ version

    I’ve tried EVERYTHING…can somebody help me?

    Thanks so much!


    you can do something like this with jQuery:

    $(“.submenu_head”).live(“click”, function(){ $(“.submenu_head”).css(‘background’, ‘white’); $(this).css(‘background’, ‘red’) });

    avoid inline css style unless it’s for email/etc where needed.


    Hi elneco

    I’ve moved the page to

    We’re almost there! Your code works great on page load (background on ‘hover’ and ‘expanded’) however, once you start using the menu…the ‘hover’ no longer works :(

    One other thing…when you click the menu items at the bottom of the page, it ‘jumps’ to the top which is very clunky. I’ve never seen an accordion act like this! Any ideas?

    Thanks so much for your help!

Viewing 3 posts - 1 through 3 (of 3 total)
  • The forum ‘JavaScript’ is closed to new topics and replies.