Why doesn't this work in IE10? It works fine with Chrome, Firefox, Opera and Safari.HTML:\[code\]<form action="#"> <label for="NoOfRooms">Select number of rooms required</label> <select id="NoOfRooms" onchange="showHide()"> <option value="http://stackoverflow.com/questions/15694759/1" selected="selected">1 room</option> <option value="http://stackoverflow.com/questions/15694759/2">2 rooms</option> <option value="http://stackoverflow.com/questions/15694759/3">3 rooms</option> </select> <br /> <label id="Room1TypeLabel" for="Room1Type" class="inline">Room 1:</label> <select id="Room1Type"> <option value="http://stackoverflow.com/questions/15694759/1" selected="selected">Single</option> <option value="http://stackoverflow.com/questions/15694759/2">Double</option> <option value="http://stackoverflow.com/questions/15694759/3">Triple</option> </select> <br /> <label id="Room2TypeLabel" for="Room2Type" class="hidden">Room 2:</label> <select id="Room2Type" class="hidden"> <option value="http://stackoverflow.com/questions/15694759/1">Single</option> <option value="http://stackoverflow.com/questions/15694759/2" selected="selected">Double</option> <option value="http://stackoverflow.com/questions/15694759/3">Triple</option> </select> <br /> <label id="Room3TypeLabel" for="Room1Type" class="hidden">Room 3:</label> <select id="Room3Type" class="hidden"> <option value="http://stackoverflow.com/questions/15694759/1">Single</option> <option value="http://stackoverflow.com/questions/15694759/2">Double</option> <option value="http://stackoverflow.com/questions/15694759/3" selected="selected">Triple</option> </select></form>\[/code\]JavaScript:\[code\]function showHide() { "use strict"; var NoOfRooms = document.getElementById("NoOfRooms"); var NoOfRoomsValue = http://stackoverflow.com/questions/15694759/NoOfRooms.options[NoOfRooms.selectedIndex].value; if (NoOfRoomsValue == 2) { Room2Type.style.display ="inline"; Room3Type.style.display = "none"; Room2TypeLabel.style.display = "inline"; Room3TypeLabel.style.display = "none"; } else if (NoOfRoomsValue =http://stackoverflow.com/questions/15694759/= 3) { Room2Type.style.display ="inline"; Room3Type.style.display = "inline"; Room2TypeLabel.style.display = "inline"; Room3TypeLabel.style.display = "inline"; } else if (NoOfRoomsValue =http://stackoverflow.com/questions/15694759/= 1) { Room2Type.style.display ="none"; Room3Type.style.display = "none"; Room2TypeLabel.style.display = "none"; Room3TypeLabel.style.display = "none"; } else alert("Error. Please try again.");}\[/code\]CSS:\[code\].hidden { display: none; }\[/code\]Fiddle.