I have a dropdown. if I select option value in dropdown ,that option should be hidden as result. I attached my piece of code for reference. This working fine in crome but hiding not working in IE-10. suggest in JavaScript it would be helpful.
I have tried Visibility property also. but not working either.
function dropdown(dd) {
document.getElementById('mySelect').options[1].style.display = "none";
}
<form>
<select id="mySelect" onchange="dropdown(this)">
<option>1</option>
<option>2</option>
<option>3</option>
<option>4</option>
<option>5</option>
</select>
</form>