Fork me on GitHub

jQuery contextMenu

Demo: Disabled Command

Example code: Disabled Command


$(function(){
    $.contextMenu({
        selector: '.context-menu-one', 
        callback: function(key, options) {
            var m = "clicked: " + key;
            window.console && console.log(m) || alert(m); 
        },
        items: {
            "edit": {name: "Clickable", icon: "edit", disabled: false},
            "cut": {name: "Disabled", icon: "cut", disabled: true}
        }
    });
});
    

Example HTML: Disabled Command

<div class="context-menu-one box menu-1">
    <strong>right click me</strong>
</div>

jQuery Context Menu Demo Gallery