1. Dynamically create select
var mySelect = document.createElement_x("select");
mySelect.id = "mySelect";
document.body.appendChild(mySelect);
}
//Add an option
text","value")); //This is compatible with IE and firefox
}
var index=obj.selectedIndex;
obj.options.remove(index); }
var val = obj.options[index].value;
var obj=document.getElementByIdx_x('mySelect');
var index=obj.selectedIndex; //Serial number, take the serial number of the currently selected optionvar val = obj.options[index].text;
var obj=document.getElementByIdx_x('mySelect');
var index=obj.selectedIndex; //Serial number, take the serial number of the currently selected optionvar val = obj.options[index]=new Option ("new text","new value");