Parameters

From nsIDOMNSHTMLOptionCollection


          
[noscript] void setOption(in long index, in nsIDOMHTMLOptionElement option)

From nsISelectElement

 Finds the index of a given option element

 @param aOption the option to get the index of
 @param aStartIndex the index to start looking at
 @param aForward TRUE to look forward, FALSE to look backward
 @return the option index
long getOptionIndex(in nsIDOMHTMLOptionElement aOption, in long aStartIndex, in boolean aForward)