How to select(highlight) an item in selectable without clicking on it (By code)?
Such that I give it the index of which box to select/higlight
I create them dynamically like that
<div class="demo"> <ol id="selectable"> </ol></div>
and
var div = document.getElementById("selectable");
for(i=0; i<list.size; i++)
{
// It should look like that
//<li class="ui-widget-content">Item 1</li>
var properties = list[i].getProperties();
var aTag = document.createElement("li");
//file name or something as ID
aTag.setAttribute('class',"ui-widget-content");
aTag.setAttribute('id',i);
aTag.innerHTML = properties.fileName;
//file name
div.appendChild(aTag);
}