Welcome aboard! We are happy you are here and wish you good net-raft!
<!DOCTYPE html>
<html lang="en">
<head>
</head>
<body>
<select>
<option value="javascript">Javascript</option>
<option value="jquery">jQuery</option>
<option value="reactjs">Reactjs</option>
<option value="vuejs">Vuejs</option>
</select>
<button>Delete current choice</button>
<script>
var button=document.getElementsByTagName("button")[0],
select=document.getElementsByTagName("select")[0];
button.onclick=function(){
select.removeChild(select.options[select.selectedIndex]);
};
</script>
</body>
</html>
The most helpful JAVASCRIPT solutions
How can I get the last day and the next day in javascript ?JAVASCRIPT Click to see more ... 5.8K 507