Joshhhhh
Programmer
- Jan 4, 2007
- 5
I have the following function:
<script language="JavaScript" type = "text/javascript">
function returnObjById( id )
{
var returnVar = document.getElementById(id);
return returnVar.value;
}
</script>
How can I transmit the value of the function to the value of the textfield
<input type="text" value="???"/>
<script language="JavaScript" type = "text/javascript">
function returnObjById( id )
{
var returnVar = document.getElementById(id);
return returnVar.value;
}
</script>
How can I transmit the value of the function to the value of the textfield
<input type="text" value="???"/>