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";
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";
If dropdown list is < select > then use
var x = document.getElementById("mySelect");
x.remove(2);