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

Home Forums JavaScript Is there a way to keep an unordered list open?

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

    I have a pages menu located on the right here:

    Here is the jQuery:

    When the .active class is added to a ul li, I want to keep that unordered list open. For example… when a user is on “Criminal Law” I want to keep its submenu open with Clerk’s Hearings and Appeals.

    Is there a way to do this that doesn’t use CSS3?


    I think it already does that. Or do you want it to remain open when the user clicks on the sub-menu and goes to the next page?


    I would like to keep the submenu of the current subpage open. For example, when I’m on “Clerk’s Hearings” (under the Criminal Law parent page) the Criminal Law submenu should remain open. Just not sure where to start on this one or what type of script would accomplish that.

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