我正在使用 JQuery 上下文菜单插件来显示自定义上下文菜单 链接在这里
我正在使用 select 显示一些选项来过滤菜单项,如下所示
var filterList={0:'title1',1:'title2',2:'title3'};
menuItems = {
"true": { name: "Sort Ascending", icon: "asc" },
"false": { name: "Sort Descending", icon: "desc" },
"sep1": "----------------",
"Clear": { name: "Clear filter on"+columnName, icon: "clear", disabled: false },
select: {
name: "Filter " + columnName, type: 'select', options: filterList,
events: {
change: function () {
**//I want selected option text value here but dont know how??**
}
}
}
};
我如何在更改功能上获得价值