Fork me on GitHub

jQuery contextMenu

Demo: Keeping the Menu visible

Example code: Keeping the Menu visible


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

Example HTML: Keeping the Menu visible

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

jQuery Context Menu Demo Gallery