OptionMenu.selectItem

void selectItem(uint index)

Selects the #WebKitOptionMenuItem at index in menu.

Selecting an item changes the text shown by the combo button, but it doesn't change the value of the element. You need to explicitly activate the item with [webkit.option_menu.OptionMenu.selectItem] or close the menu with [webkit.option_menu.OptionMenu.close] in which case the currently selected item will be activated.

Parameters

indexthe index of the item