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!
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!