Help with jquery accordion menu

Posted on 2012-09-14
Last Modified: 2013-09-20
I'm setting up a menu I found here:

I'd like to make a couple of the buttons clickable directly to a link instead of expanding.  For example, the sign out button.  I dont have a sub-menu for that, I'd just like to take the user to the sign out page.  How might I do this?  

Question by:MFredin
    LVL 81

    Expert Comment

    <li id="one" class="signinout">
            <a href="/path/to/signout.php">Sign out<span>10</span></a>

    Open in new window

    LVL 49

    Expert Comment

    by:Julian Hansen
    Need to see how your menu is implemented.

    See what happens if you do what leakim971 says and don't define a sub-list.

    Accepted Solution

    I figured this out...

    In the javascript there is a comment:

    // Disable header links

    I just commented that js line out and it works the way I was needing :)

    I have another question regarding this menu though if you wouldn't mind looking:
    LVL 49

    Expert Comment

    by:Julian Hansen
    ok but just be careful because that line is there for a reason - to stop the default action for a click on an <a> element. If you remove it it might cause unexpected results for the rest of your menu.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How to run any project with ease

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    Introduction A frequently asked question goes something like this:  "I am running a long process in the background and I want to alert my client when the process finishes.  How can I send a message to the browser?"  Unfortunately, the short answer …
    International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
    The viewer will receive an overview of the basics of CSS showing inline styles. In the head tags set up your style tags: (CODE) Reference the nav tag and set your properties.: (CODE) Set the reference for the UL element and styles for it to ensu…
    The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

    779 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    21 Experts available now in Live!

    Get 1:1 Help Now