This question is locked. New answers and comments are not allowed.
Hi,
I'm trying to get the selected menu item. Based on that selection I want to execute other code.
I've tried the following combination without success:
function Select(e) {
// "this" in this event handler will be the component.
// the "e" is an object passed by the jQuery event trigger.
e.stopPropagation();
var item = $(e.item);
var text = item.find('> item.t-link').text();
alert(text);
var menu = $("#Menu").data("tMenu");
alert(menu);
var item = $("> li", menu.selected)[$("#itemIndex").val()];
alert(e.valueOf(item));
}
Someone must know this...???
Thanks,
Arnold
I'm trying to get the selected menu item. Based on that selection I want to execute other code.
I've tried the following combination without success:
function Select(e) {
// "this" in this event handler will be the component.
// the "e" is an object passed by the jQuery event trigger.
e.stopPropagation();
var item = $(e.item);
var text = item.find('> item.t-link').text();
alert(text);
var menu = $("#Menu").data("tMenu");
alert(menu);
var item = $("> li", menu.selected)[$("#itemIndex").val()];
alert(e.valueOf(item));
}
Someone must know this...???
Thanks,
Arnold