Here it is complete:
<td id="CCFFCC" style="background-color:#C
The javascript:
function toggleLayer( Colorcntrl ,txtboxcntrl, TBL, HexColor)
{
document.getElementById(tx
}
But perhaps better:
<td id="MyElement" style="background-color:#C
The javascript:
function toggleLayer( Colorcntrl ,txtboxcntrl, TBL, HexColor)
{
document.getElementById(tx
}
And yet another way of doing it
<td id="MyElement" style="background-color:#C
The javascript:
function toggleLayer( Colorcntrl ,txtboxcntrl, TBL, HexColor)
{
document.getElementById(tx
}
Main Topics
Browse All Topics





by: hieloPosted on 2007-10-21 at 10:43:14ID: 20118641
The syntax should be: tboxcntrl) .value = Colorcntrl.id tboxcntrl) .value = "#"+Colorcntrl.id
document.getElementById(tx
But, I believe the id property must start with a alphabetic character.
This I would remove the "#" from the Id name and change the statement to
document.getElementById(tx