This is a migrated thread and some comments may be shown as answers.

hierarchical menu: how to get the full selected path

0 Answers 74 Views
Menu
This is a migrated thread and some comments may be shown as answers.
Christopher
Top achievements
Rank 1
Christopher asked on 03 Jun 2012, 04:36 AM
I've got a hierarchical menu.
I've put on it hander for select via:
select: function(e){alert(e.item.innerText);{

This works great for getting the text of the item that I selected, but
what I really want is to ALSO get the text of the parent menu item (if there is a parent menu item).
Returnng an array of strings would be good, but one string with a known separator between items would be ok too.

thanks!

No answers yet. Maybe you can help?

Tags
Menu
Asked by
Christopher
Top achievements
Rank 1
Share this question
or