Home  >  Article  >  Web Front-end  >  js option delete code collection_javascript skills

js option delete code collection_javascript skills

WBOY
WBOYOriginal
2016-05-16 18:58:57958browse

1. JavaScript

Copy code The code is as follows:

var oSel=document.form1.DropDownCity;
while(oSel.options.length>0){
oSel.removeChild(oSel.options[0]);
}

2. JavaScript
Copy code The code is as follows:



3. JavaScript
Copy code The code is as follows:


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