Menu
Hello Everyone,
I would like to dynamically set the ID of a table using javascript and then alert it. Does anyone know how to do this?
Thanks in advance. ?
<html>
<head>
<script type=”text/javascript”>
function setTableID()
{
document.getElementsByTagName(“table”).id=”tableid” //–does not work.
}
</script>
</head>
<body>
<table border=”1″>
</table>
</body>
</html>