how to remove options from selectlist in javascript 3f

Solutions on MaxInterview for how to remove options from selectlist in javascript 3f by the best coders in the world

showing results for - "how to remove options from selectlist in javascript 3f"
Alessio
26 Feb 2018
1var selectobject = document.getElementById("mySelect");
2for (var i=0; i<selectobject.length; i++) {
3    if (selectobject.options[i].value == 'A')
4        selectobject.remove(i);
5}
Renata
04 Sep 2019
1<select id="mySelect" name="val" size="1" >
2    <option value="A">Apple</option>
3    <option value="C">Cars</option>
4    <option value="H">Honda</option>
5    <option value="F">Fiat</option>
6    <option value="I">Indigo</option>                    
7</select> 
queries leading to this page
select eliminate option javascriptremoving options from select javascripthow to retrieve valeu from select in jshtml select remove itemdelete an option from select javascriptselect remove all option javascriptjs remove options from selecthtml selector remove option how to remove option list using javascriptjavascript combobox remove itemremove option of select javascriptremove options in select javascriptjs remove selectjs remove option from drop down listjavascript delete options from selectjavascript remove item from selectlistjavascript remove select optionhow to remove select option in javascriptjavascript remove element select 28 29 javascript remove select options alljavascript remove options from selecthow to delete options from select element using jscan we delete options from select in jsjs remove select optionsdelete select options jsjavascript remove select boxhtml select javascript remove all optionsremove options from selectjavascript remove option in selectremove select box options javascriptremove an option from select javascriptmy selection is remove in javascriptremove options from selects javascripthtml javascript select list add remove optionsremove select from selct jsdelete all options from select javascriptselect delete function javascripthow to remove options from select in javascriptjavascript remove selected option in select menudelete option select javascriptjavascript remove from selectadd and remove select options javascripthow to use where in datatable c 23how to remove options from selectlist in javascript 3fjavascript select option removejavascript remove select optionsjs select option removejavascript removeoption selectremove select options javascriptdelete option 3e 3c 2fselect javascriptdelete all options select javascriptjavascript remove option from selectremove select jshow to remove a option from option javascriptjs delete option from selectdelete select options javascriptremove select javascriptjavascript select remove optionremove select option jsremove options from select javascriptremove option select jsremove select option javascriptremove all option in select javascriptselect option remove javascriptdelete options from dorpdown via javascripthow to remove all options from select in javascriptjs remove select optionhow to remove options from selectlist in javascript 3f