hey, I've found some results for this on google but nothing satisfying so I was hoping someone here might know.
It seems as though populating a select element using innerHTML does not work in IE
I have set up a file that does nothing but that and it works with everything but IE, here's the code in case anyone cares:
<html>
<head></head>
<body onload="populate();">
<script type="text/javascript">
function populate()
{
document.getElementById("test").innerHTML = '<option id="a">works</option>';
}
</script>
<select id="test"></select>
</body>
</html>
Anyone know a solution to this? I don't want to remove everything and then manually use appendChild as I am returned html from a different function, and it seems ridiculous that this doesn't work.
Any ideas would be appreciated.