$(function () { var returnsValue; // Type: any // Parameters var menuitem; // Type: any var position; // Type: number returnsValue = $(".selector").wijmenu("add", menuitem, position); });
Parameters
- menuitem
- The menuItem to be added 1.markup html.such as "<a>menuItem</a>" as a menuItem. 2.object options according to the options of wijmenuItem.
- position
- the position to insert at