Creates a combolist, <select> with additional possibility of direct user input.
Creates a combolist containing values from optListarray, with a value of defaultValue.
Its main div is accessible as OAT.Combolist::div.
Onchange callback may be set via OAT.Combolist::onchange property.optionsObject may contain:
Adds a new option labeled label with value of value. If value is not specified, label is used instead.
Clears all options.
CSS class of the combolist div.
CSS class of the text input field option.
CSS class of the regular option.
CSS class of the option list.
var cl = new OAT.Combolist([],"default",{name:"myName"}); document.body.appendChild( cl.div ); cl.addOption("option 1"); cl.addOption("option 2","value 2");