1. JavaScript
var oSel= document.form1.DropDownCity;
while(oSel.options.length>0){
oSel.removeChild(oSel.options[0]);
}
2. JavaScript
3. JavaScript
4. JavaScript
removeOption Usage in IE
function removeOption(index)
{
document.getElementById("selUnassignedUsers").options.remove(index);
}
removeOption Usage in FF
function removeOption(index)
{
document.getElementById("selUnassignedUsers") .remove(index);
}
Statement:The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn