Skip to content

Instantly share code, notes, and snippets.

@puiutucutu
Created October 23, 2015 01:44
Show Gist options
  • Select an option

  • Save puiutucutu/f049b88d5f78ba6174e6 to your computer and use it in GitHub Desktop.

Select an option

Save puiutucutu/f049b88d5f78ba6174e6 to your computer and use it in GitHub Desktop.
for (var i = 0; i < table.rows.length; i++)
{
table.rows[i].onclick = (function (event)
{
var th = rows[0].cells[0].innerHTML
var td = event.target
// var rowid = this.cells[i].innerHTML
// debug(event.currentTargett)
// debug(event.currentTarget)
// debug(rowid)
event.currentTarget.getElementsByTagName('td')[1].innerHTML = 42;
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment