$element->setOptions() -- Utility function equivilant to HTML_Select - loadArray **
Description
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>
.
Throws
throws no exceptions thrown
Note
This function can not be called
statically.