How to unbind/remove context menu using ContextMenu plugin by Chris Domigan in jquery? -


i using jquery context menu plugin chris domigan appy context menu.

i registering/binding context menu this:

$('#mydiv').contextmenu('mymenu', {     bindings: {         /* events here */     } } 

now in application, not want conext menu #mydiv. so, how can un-register/unbind/remove context menu #mydiv.

all have use disable contextmenu is:

$('#mydiv').off('contextmenu'); 

this uses jquery's .off() function, removes contextmenu event. isn't perfect doesn't undo plugin did should work case.

here working: http://jsfiddle.net/wphyz/


Comments

Popular posts from this blog

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

html - How to style widget with post count different than without post count -

url rewriting - How to redirect a http POST with urlrewritefilter -