Accordion Menu / Posts /

if the same link appears multiple times how can I mandate which link is shown as selected

1425
I have a link that appears under two different categories. It seems that only the second instance of the link is being seen as the real link for what AccordianMenu considers as the "selected" link. I can't seem to override this, aside from removing the second link instance. Any suggestions or thoughts for why this would be happening?
mike  11 years ago   viewed: 23305    

3 Answers

1
Use the menu's built-in function open(). For details please read:
http://www.menucool.com/vertical/accordion-menu#view3
Milo   11 years ago
0

To mandate which instance is recognized as selected, you can try:

  1. Assign unique identifiers (IDs) to each link instance, then modify the selection logic to recognize the ID of the desired link. 
  2. Ensure that your CSS or JavaScript specifically targets the first instance using attributes like nth-of-type or nth-child.
  3. Explicitly set the "selected" state in your code for the preferred link.
    http://www.menucool.com/vertical/accordion-menu#that's not my neighbor
labelspaniel   one month ago
0

To ensure a specific link is shown as selected when duplicates appear, utilize a conditional statement to prioritize the desired link. Think of it like navigating through a Geometry Dash level—choose your path wisely to avoid obstacles and reach your goal effectively.


claudietrantow
  7 hours ago

   

Your name*
Password
(Optional. Used to modify this post afterwords)
+ =  

Ask your Own Question

  • If your question is related to the topic of this post, you can post your question to this page by clicking the "Post a reply" button at left;

  • When you want to start a new page for your question: