troubles use jQuery ContextMenu Plugin in code

troubles use jQuery ContextMenu Plugin in code

I'm using this example of the plug-in.

  1.  var menu1 = [ {'Option 1':function(menuItem,menu) { alert("You clicked Option 1!"); } }, $.contextMenu.separator, {'Option 2':function(menuItem,menu) { alert("You clicked Option 2!"); } } ]; $(function() { $('.cmenu1').contextMenu(menu1,{theme:'vista'}); });


to use this menu they show in the page source a div like so.

  1. </div><div class="example-show"> <span class="cmenu2 example-target">Right-click here to trigger the context menu</span> </div>
What I want to do is defined the menu like above and then bring up the context menu programmatically, not based on a right click. How can I do that?