Select Option Creator and Destroyer
Working with dynamic select boxes requires a lot of creation and destruction.
- Input:
- Select box object
- Output:
- None
function selDest(oSel) {
for (ii=oSel.length;ii>0;ii--) {oSel.options[0] = null}
}
function selAdd(oSel) {
oSel.options[oSel.length] = new Option("Text","value",false,true)
}
