我想动态禁用剑道菜单子项。我已经定义了剑道菜单
Html:
<div id="menu"></div>
<button id='enable'>Enable</button>
查询:
$("#menu").kendoMenu({
dataSource:[{text:"Actions",value:1,items:[{text:"First",value:2},{text:"Second",value:2}]}]
});
现在我想禁用第二项。点击按钮我想启用菜单
$("#enable").on('click',function(){
// here i want to enable the second
});
我怎样才能做到这一点。