Logo
doctype [?]
[strict] [loose] [none]

Selectbox Utility Functions


These test cases setup select elements in one state, then use calls to the Selectbox object to modify their state, then verify that those changes were done successfully. Successful tests will be green, unsuccessful tests will be red.

Selectbox.hasOptions

Selectbox.selectOptions

Test Case #4 [test all]

Test #1 : document.forms['tests'].elements['selectOptions3'].options[0].selected==false Test #2 : document.forms['tests'].elements['selectOptions3'].options[1].selected==true Test #3 : document.forms['tests'].elements['selectOptions3'].options[2].selected==true Test #4 : document.forms['tests'].elements['selectOptions3'].options[3].selected==true Test #5 : document.forms['tests'].elements['selectOptions3'].options[4].selected==false

Selectbox.selectOnlyOptions

Selectbox.unselectOptions

Selectbox.sort

Selectbox.selectAllOptions

Selectbox.moveSelectedOptions

Selectbox.copySelectedOptions

Selectbox.moveAllOptions

Selectbox.copyAllOptions

Selectbox.swapOptions

Selectbox.moveOptionUp

Selectbox.moveOptionDown

Selectbox.removeSelectedOptions

Selectbox.removeAllOptions