$element->setOptions (mixed $array, HTML_Element $from)
$element->setOptions
but using key=>value maps <option value="key">Value</option> Key=key (eg. both the same) maps to <option>key</option> and label = array(key=>value) maps to <optgroup label="label"> <option value="key">value</option></optgroup>
.
$array
$from override settings from another element.
throws no exceptions thrown
This function can not be called statically.