getDropDown(id).select( "option" )
Selects an option in the drop-down list. Nothing happens if the option passed as an argument does not exist.
Example:
[js highlight=”3″ try=”true”]newDropDown(“warmth”, “”)
.settings.add(“hot”, “lukewarm”, “cold”)
.select( “lukewarm” )
,
newText(“Spring in Colorado is “)
.settings.after( getDropDown(“warmth”) )
.print()[/js]
Creates a drop-down list containing the options hot, lukewarm and cold, selects the option lukewarm and adds the list to the right of the text Spring in Colorado is, then prints everything onto the page.