Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Generating text boxes

Status
Not open for further replies.

saimon65

Technical User
Jan 2, 2002
16
AU
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.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top