Can not add style to an innerHtml <tr>

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 &lt; resultSet.fieldCount(); i++)
       
txt.innerHTML+='&lt;td&gt;' + resultSet.field(i) + '&lt;/td&gt;';
   
resultSet.next();

txt.innerHTML+='&lt;/tr&gt;';

}

You may need to increase the weight of the style being applied to allow it to work. You can do this by using more selectors and element names to refer to the target. Try this rule in your CSS:
table#your_id tr.your_class { your styles; }

Thanks alot for the reply! I figured it out though. Should have posted sooner. Thanks again.