How to enable/disable menu item LI
Hi,I want to disable/enable menu item li based on boolean attribute which is stored in hidden field using mvc application.Below example i want to disable department & admin if userrole is user.I want to enable employee if user roles is super user.
example:
<ul id="panelbar" class="panelbar hidden"><li id="parentLI"><a class="current" href="/Emp/EmpUserProfile" id="909" rel="909">Employee</a></li><li id="parentLI"><a class="" href="/Emp/EmpUserProfile" id="910 rel="910">Department</a></li><li id="parentLI"><a class="" href="/Emp/EmpUserProfile" id="910" rel="910">Admin</a></li></ul>
Kindly share me example using jquery or javascript.
Thanks,
Krishna.K