|
you cant delete the space i think but you can erase the text and value (you should actully keep the value and change it to something like "voidoption" so you can check if its void) anway you can change an option by using this
document.theform.theselect.options[0].value = "nufink"
document.theform.theselect.options[0].text = ""
to change the vakue of the current selected option use this!
document.theform.theselect.options[theform.theselect.selectedIndex].value = "nufink"
theform.theslect.selectedIndex is the numbe of the currently selected option (well, at te time it is called) it starts at 0 and goes up with more oprions added
__________________
photoshop too expensive? use the GIMP! www.gimp.org
|