0

I want to remove one value from a dropdown list.

The code below works fine for the IE browser but it's not working for Chrome and Mozilla.

document.formName.propertyName.options[1].style.display="none";
fantaghirocco
  • 4,584
  • 6
  • 36
  • 47
  • 1
    Possible duplicate of [Removing an item from a select box](https://stackoverflow.com/questions/375508/removing-an-item-from-a-select-box) – DarkBee Sep 26 '17 at 14:06

1 Answers1

0

If dropdown list is < select > then use

var x = document.getElementById("mySelect");
x.remove(2);

w3schools

Andrii Khomiak
  • 154
  • 1
  • 9