I am trying to dynamically remove options from a select box.
Does anyone know the syntax for removing the option element and adding an option element..
e.g.
for (i = 0 ; i < document.cycend_range_selection.StartDay.options.length - 1; i++){
document.cycend_range_selection.StartDay.options{i}.remove; ??? //should be braces but site removes those
}
Thanks in advance,
Bygs
Does anyone know the syntax for removing the option element and adding an option element..
e.g.
for (i = 0 ; i < document.cycend_range_selection.StartDay.options.length - 1; i++){
document.cycend_range_selection.StartDay.options{i}.remove; ??? //should be braces but site removes those
}
Thanks in advance,
Bygs