M
Mike
Hello,
I am trying to move the contents of one cell to another with a click.
I have this in my table:
<td id="1" onclick="MoveTeam(this.id)" >Team 1</td>
and this in js:
function MoveTeam(id){
var x=document.getElementById(id).innerText;
document.getElementByID(21).innerText=x;
}
But it aint working.
Any suggestions
Thanks
Mike
I am trying to move the contents of one cell to another with a click.
I have this in my table:
<td id="1" onclick="MoveTeam(this.id)" >Team 1</td>
and this in js:
function MoveTeam(id){
var x=document.getElementById(id).innerText;
document.getElementByID(21).innerText=x;
}
But it aint working.
Any suggestions
Thanks
Mike