$(function () {
// Get value
var returnsValue; // Type: string
returnsValue = $(".selector").wijmenu("option", "trigger");
// Set value
var newValue; // Type: string
$(".selector").wijmenu("option", "trigger", newValue);
});
//Set trigger to make menu as input's contextmenu.
$(".selector").wijmenu("option", "trigger", "input")
Remarks
If the trigger is set to a menu item(the <li> element),
then the submenu appears when the item is clicked if the triggerEvent
is set to click. If the trigger is set to an element outside of the menu,
then the menu opens when the element is clicked if the triggerEvent is
set to click as a contextmenu.