I already read some posts about IE8 causing trouble with getElementByID but couldn't find a workaround. My code looks like this right now:
<script type="text/javascript">
//<![CDATA[
function settext(id) {
switch(id) {
case "0": document.getElementById('text').innerHTML="something";
break;
case "1": document.getElementById('text').innerHTML="again something";
break;
default: document.getElementById('text').innerHTML="something the third";
break;
}
}
//]]>
</script><select style="width: 145px" onchange="settext(this.value)">
<option value="-1">something</option>
<option value="0">again</option>
<option value="1">and so on</option>
</select>
<table width="100%" border="0" cellspacing="0" cellpadding="5" id="text"></table>
It works fine with Firefox, Chrome and IE10. I'd be glad to get some help with this.
Thanks in advance!