Hello. I am trying to style a <tr> that is generated using innerhtml. I have tried giving it a class, an id, and styling it inline. Not sure what the deal is. If i try it with the <td> it works fine. Any help would be appreciated. Thanks in advance.
var txt = document.getElementById(“tbod1”);
while (resultSet.isValidRow())
{
txt.innerHTML+=‘<tr>’;
for (var i = 0; i < resultSet.fieldCount(); i++)
txt.innerHTML+='<td>' + resultSet.field(i) + '</td>';
resultSet.next();
txt.innerHTML+='</tr>';
}