document.getElementById("myid").innerHTML=str;
<td colspan=6><span id="myid" type="hidden"></span></td>
the string str shows up, not hidden?
Posted 04 September 2012 - 07:26 PM
Posted 06 September 2012 - 07:28 AM
<!DOCTYPE HTML>
<html>
<head>
<title> Untitled </title>
<script type="text/javascript">
</script>
</head>
<body>
<input type="hidden" id="hiddenID" value="This is a hidden value">
<button onclick="alert(document.getElementById('hiddenID').value)">Hidden value</button><p>
It's a<span
onmouseover="document.getElementById('spanMad').style.display='inline'"
onmouseout="document.getElementById('spanMad').style.display='none'">
<u>mad</u></span><span id="spanMad" style="display:none">, mad, mad, mad</span> world!
</body>
</html>
