To remove options from a dropdown list, use the remove() method in JavaScript. You can try to run the following code to learn how to remove options from the drop-down −
Example
<!DOCTYPE html> <html> <body> <form id = "myForm"> <select id = "selectNow"> <option>One</option> <option>Two</option> <option>Three</option> </select> <input type = "button" onclick = "remove()" value = "Click to Remove"> </form> <p>Select and click the button to remove the selected option.</p> <script> function remove() { var x = document.getElementById("selectNow"); x.remove(x.selectedIndex); } </script> </body> </html>