jQuery.wijmo.wijcombobox Namespace > options type : selectedIndex Field |
Default value: 0
A value that specifies the index of the item to select when using single mode.
Javascript (Usage) | |
---|---|
var value; // Type: number value = jQuery.wijmo.wijcombobox.options.selectedIndex; |
Javascript (Specification) | |
---|---|
|
//To get the selected item using the selected index: var selectedIndex = $("# tags ").wijcombobox("option","selectedIndex"); var selectedItem = $("# tags ").wijcombobox("option","data")[selectedIndex]; // To set the selected item using the selected index: $("#tags").wijcombobox("option"," selectedIndex", 5);