javascript - Getting the class name of selector clicked in JQuery ContextMenu -


i using jquery's contextmenu.

so have following code:

 $.contextmenu({         selector: '.item-context, .nitem-context',          callback: function(key, options) {             // cm.inventorydetails.context_action(key, options);             im.events.attach(im.events.events_const.item_context_action,key,options);         },         items: {             "view": {name: "view", icon: 'view'},             "remove": {name : "remove", icon: 'delete'},         }     }); 

my question is, how can know classname of selector triggered event?

your responses appreciated. thanks.

try in callback function:

var classname = options.items[key].$node[0].classname; 

hope helps.

regards


Comments

Popular posts from this blog

qt - Using float or double for own QML classes -

Create Outlook appointment via C# .Net -

ios - Swift Array Resetting Itself -