I have the following code in the head section of my page.
Code:
<script language="JavaScript">
		<!--
			function assettype_clicked(){
				//alert(document.forms['frmAdd'].elements['assettype'].value);
				var selectedType=document.forms['frmAdd'].elements['assettype'].value;
				var availableMakes;
				
				if(selectedType == 6){//switch
					//7 Cisco, 8 HP
					availableMakes = "<option value='1'>Unknown</option>" + 
						"<option value='7'>Cisco</option>" +
						"<option value='8'>HP</option>";
				}else if(selectedType == 5){//docking station
					//5,Lenovo
					availableMakes = "<option value='1'>Unknown</option>" +
						"<option value='5'>Lenovo</option>";
				}else if(selectedType == 4){//monitor
					//4,Lenovo
					availableMakes = "<option value='1'>Unknown</option>" +
						"<option value='4'>Lenovo</option>";
				}else if(selectedType == 3){//laptop
					//3,Lenovo 6,Dell
					availableMakes = "<option value='1'>Unknown</option>" +
						"<option value='3'>Lenovo</option>" +
						"<option value='6'>Dell</option>";
				}else if(selectedType == 2){//desktop
					//2 Lenovo
					availableMakes = "<option value='1'>Unknown</option>" +
						"<option value='2'>Lenovo</option>";
				}else{
					//1,unk
					availableMakes = "<option value='1'>Unknown</option>";
				}
				var assetmakeselect=document.getElementById("assetmake");
				assetmakeselect.innerHTML=availableMakes;
			}
		//-->
		</script>
If using Chrome or Firefox, the code works fine. When certain types are chosen, corresponding makes are populated. (Both fields are <select>s )

If I press F12 in IE, it appears as if the "assetmake" select is not being populated with the html tags. For example, I clicked on "Laptop Computer" and IE is reporting that "assetmake" is filled with just "UnknownLenovoDell", yet doing the same in Chrome returns
"<option value="1">Unknown</option><option value="3">Lenovo</option><option value="6">Dell</option>"
which is what it's supposed to be.

Does innerHTML just not work in IE, or is there something I'm missing?