enabled

The enabled() method accepts two types of parameters.
1. An optional Boolean value, specifying whether the item identified should be enabled or disabled.
2. A variable list of numeric values (zero-based indexes), specifying the menu level. For example, an argument list of (true, 3, 2) specifies that the fourth element from the first menu and the 3rd from the secondary sub menu should be enabled.
If the first element is omitted, then the state of the specified index (enabled or disabled) is returned.


<ul id="menu1">
    <li>Open</li>
	<li>Save</li>
	<li>Exit</li>
</ul>

<script type="text/javascript">

    $(function () {
        $("#menu1").shieldMenu({
             width: "100px"
        });

        var menu = $("#menu1").swidget();

        //disable Save option of the Menu widget
        menu.enabled(false, 1);

        //Save option is disabled
        alert(menu.enabled(1));
     });

</script>