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
相关问题
- Is there a limit to how many levels you can nest i
- How to toggle on Order in ReactJS
- MVC-Routing,Why i can not ignore defaults,The matc
- void before promise syntax
- Keeping track of variable instances
You can use HTML5 data atrributes to accomplish this.
HTML
And the Javascript:
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/