Created
October 23, 2015 01:44
-
-
Save puiutucutu/f049b88d5f78ba6174e6 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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