[jQuery] select box - options manipulation
Determining a value of a selected option in a select tag:
document.formname.selectname.options[
document.formname.selectname.selectedIndex].value
Determining the text of a selected option in a select tag:
document.formname.selectname.options[
document.formname.selectname.selectedIndex].text
Inserting a new option into a select tag:
var myformelm = document.formname.selectname;
var newoption = new Option();
newoption.value = 'my new value';
newoption.text = 'my new text';
myformelm.options[myformelm.options.length] = newoption