The enabled() method accepts two types of options.
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 context menu level. For example, an argument list of (true, 3, 2) specifies that the fourth element from the first context menu and the 3rd from the secondary sub menu.
If the first element is omitted, then the state of the specified index (enabled or disabled) is returned.

<ul id="contextmenu1">
<button id="button1" type="button">Context Menu</button>

<script type="text/javascript">

                target: "body"               

            $("#button1").click(function handleMenu() {                
                $("#contextmenu1").swidget().enabled(false, 1);