hierarchical menu: how to get the full selected path

1 posts, 0 answers
  1. Christopher
    Christopher avatar
    10 posts
    Member since:
    Mar 2012

    Posted 02 Jun 2012 Link to this post

    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!
Back to Top