GetElementByID

[Total: 0    Average: 0/5]

getElementByID routine is shown how to use.

Body Code:

<script>
function doIt()
{
document.getElementById("abc").elements[0].value="YOU GOT IT";  document.getElementById("abc").busemail.value="I WAS HERE";
}
</script>
<div id=business>
<form id=abc name=businessform>
<input type=text name=firstone value="?">
<input type=text name=busemail value="?">
</form>
</div>
<HR><a href="javascript:doIt()">click to do it</a>

Times Viewed: 0

Leave a Reply

Your email address will not be published. Required fields are marked *