Forum Moderators: open
<form action = "javascript:handleTextInput()">
<input type = "text" id = "textinput">
</form> Would it be easier to keep the original column 8 with times fixed and add a new column 9 which displays the updated times run through the Java script?
<table>
<tr>
<td>1</td><td>2</td><td name = "daytime">3</td>
</tr>
<tr>
<td>1</td><td>2</td><td name = "daytime">3</td>
</tr>
<tr>
<td>1</td><td>2</td><td name = "daytime">3</td>
</tr>
<tr>
<td>1</td><td>2</td><td name = "daytime">3</td>
</tr>
</table>
<p><span style = "padding: .5em; border: 1px solid" onclick = "readTable()">Make Table</span></p> function readTable()
{
var count, newvalue;
var holder = document.getElementsByName("daytime");
for (count = 0; count < holder.length; count++)
{
newvalue = parseInt(holder[count].innerHTML,10) + 1;
holder[count].innerHTML = newvalue;
}
}