h8ids
06-06-2007, 10:22 PM
I'd like to share a Node value with an element value.
Presently, the <SPAN> tag does receive a VALUE from an INPUT textfield.
Now I'd like to share the VALUE with the the RADIO button.
Code populating the <SPAN> tag:
function dup(what)
{
var createText = document.createTextNode(what);
var cell = document.getElementById('sameName');
if(cell.hasChildNodes())
{
while(cell.childNodes.length >= 1 )
{
cell.removeChild( cell.firstChild );
}
}
cell.appendChild(createText);
}
Form code:
<span id="sameName"></span>
<input checked type="radio" name="FacultyName" id="Name" value="">
Presently, the <SPAN> tag does receive a VALUE from an INPUT textfield.
Now I'd like to share the VALUE with the the RADIO button.
Code populating the <SPAN> tag:
function dup(what)
{
var createText = document.createTextNode(what);
var cell = document.getElementById('sameName');
if(cell.hasChildNodes())
{
while(cell.childNodes.length >= 1 )
{
cell.removeChild( cell.firstChild );
}
}
cell.appendChild(createText);
}
Form code:
<span id="sameName"></span>
<input checked type="radio" name="FacultyName" id="Name" value="">