i suck; problems with contextMenu

i suck; problems with contextMenu

i have testing the contextMenu plugin from jQuery, but it dont work how i want.

$('*').contextMenu('contextMenu' , {
      onShowMenu: function(e, menu) {
        if ($(e.target).attr('class') == 'icon') {
      //all
   }else{
$('#downloaden, #delete, #copy, #cut', menu).remove();
}
           return menu;
   },

       bindings: {
           'delete': function(t) {
       
        },      
      'paste': function(t) {
       
        },
      'copy': function(t) {
     
        }
      }
    });


i want that all in body are context, but on <div> with the class of 'icon' should all <li> and on body for example only few of them.

sry for bad english. xmo
    • Topic Participants

    • x.m.o