Hi all. What I am trying to do is when I click on a button each time, a new row is created in the table and a text box is created inside it. Since I am creating text boxes one below the other in a table, I could not figure out how to do it.
Right now I am doing something like this.
var tableElem = document.getElementById ('announce_table');
var rowElem = tableElem.rows[5];
var tdValue = rowElem.cells[1].innerHTML;
rowElem.cells[1].innerHTML = "<input type='text'>";
I am having problem in writing row by row. Can anyone please help me. Thanks.
Right now I am doing something like this.
var tableElem = document.getElementById ('announce_table');
var rowElem = tableElem.rows[5];
var tdValue = rowElem.cells[1].innerHTML;
rowElem.cells[1].innerHTML = "<input type='text'>";
I am having problem in writing row by row. Can anyone please help me. Thanks.