Discussion Locked

adding cell in rows using javascript

0 helpful
1 reply
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.
hi,using HTML design i've developed a table with 3rows and 4 columns.now the problem is when specifying the particular row,a cell should be included and the value should be incremented dynamically.i've developed code but it's static.if anybody knows help me out immediately.

1 reply

by master3bs

This or a variation of this might work:

var tr = document.all[tableID].insertCell();
tr.onClick = "fnTRClicked()";
// If you copy this code and put in a new HTML file and click on the
table row the onClick event will be fired.

textarea1.value = document.all['fs2'].innerHTML

This discussion is closed to new replies.