Web Development

General discussion


adding cell in rows using javascript

By hussainfarzana ·
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.

This conversation is currently closed to new comments.

Thread display: Collapse - | Expand +

All Comments

Collapse -

by master3bs In reply to adding cell in rows using ...

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

Related Discussions

Related Forums