Monday, May 20, 2024
 Popular · Latest · Hot · Upcoming
145
rated 0 times [  146] [ 1]  / answers: 1 / hits: 45145  / 13 Years ago, tue, august 23, 2011, 12:00:00
 var table = document.getElementById(table1);
var tr = table.insertRow();
var td = tr.insertCell();
td.innerHTML= document.getElementById('txt1').value;


i am using code like this. how to give Id for tr(TableRow). help me.


More From » javascript

 Answers
227

Just give
tr.id = some_id. This will work.


[#90472] Monday, August 22, 2011, 13 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
uriahw

Total Points: 372
Total Questions: 93
Total Answers: 115

Location: Bahrain
Member since Fri, Sep 16, 2022
2 Years ago
;