如何检索值剑道菜单ID [英] how to retrieve id value in kendo menu
本文介绍了如何检索值剑道菜单ID的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我使用的剑道菜单中的我project.I要检索的值id当我所选项目的点击。我用onSelect事件,我能够检索所选项目Text.can妳告诉我如何检索id值
I am using kendo menu in my project.I want to retrieve id value when i click on the selected item. I used onSelect event and I am able to retrieve the selected item Text.can u tell me how to retrieve the id value
推荐答案
您可以设置在从中初始化了UL / LI结构的ID(检查Robotsushi的答案)。但是,如果你想初始化动态菜单,您可以使用这样的事情 - http://jsfiddle.net/MMRCf/ 8 /
You can set an ID in the UL/LI structure from which you initialize it (check the Robotsushi's answer). However if you want to initialize the menu dynamically you can use something like this - http://jsfiddle.net/MMRCf/8/
这篇关于如何检索值剑道菜单ID的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文