Wijmo UI for the Web
selectedIndex Option
wijmo.list.wijlist Namespace > options type : selectedIndex Option

Default value: -1

A value that specifies the index of the item to select when using single mode.

Syntax
$(function () {
    
    // Get value
    var returnsValue; // Type:  number
    returnsValue = $(".selector").wijlist("option", "selectedIndex");
    
    // Set value
    var newValue; // Type:  number
    $(".selector").wijlist("option", "selectedIndex", newValue);
        
});
var selectedIndex : number;
Remarks
If the selectionMode is "multiple", then this option could be set to an array of Number which contains the indices of the items to select. If no item is selected, it will return -1 or [](in multiple mode).
See Also

Reference

options type
wijlist jQuery Widget