I am trying to use javascript to update the text in a html label.
It works in all browsers except IE8. In IE8 the label appears to be updated but is not displayed on the screen.
I've created demo code below that shows the issue.
Thanks
<html>
<head>
<script>
function sendRequest() {
document.getElementById('errormessage').textContent="test";
alert("textContent : "+document.getElementById('errormessage').textContent);
}
</script>
</head>
<body>
<a href="javascript:void(0)" onclick="sendRequest();"> Click me</a>
<br/>
<label id="errormessage" style="color:#F00"> </label>
</body>
</html>