• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 208
  • Last Modified:

Help with jquery accordion menu

I'm setting up a menu I found here:  http://designmodo.com/jquery-accordion-menu/

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?  


Thanks!
0
MFredin
Asked:
MFredin
  • 2
1 Solution
 
leakim971PluritechnicianCommented:
<li id="one" class="signinout">
        <a href="/path/to/signout.php">Sign out<span>10</span></a>
</li>

Open in new window


no?
0
 
Julian HansenCommented:
Need to see how your menu is implemented.

See what happens if you do what leakim971 says and don't define a sub-list.
0
 
MFredinAuthor Commented:
I figured this out...

In the javascript there is a comment:

// Disable header links
event.preventDefault();

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:
http://www.experts-exchange.com/Programming/Languages/Scripting/JavaScript/Q_27865860.html
0
 
Julian HansenCommented:
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.
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now