I just want to add style in my first tr
on my inner HTML table how could I do this?
for (i = 0; i <= years_in_months; i++) {
var powint1 = compound * (Math.pow(interest, i));
powint1 = powint1.toFixed(0);
var ointerest = (interest - 1)*100;
ointerest = ointerest.toFixed(0);
tableHTML = tableHTML + "<tr><td>" + months2[i] + "</td><td> " + ointerest + "%"+"</td><td>"+ "$"+powint1 +"</td></tr>";
document.getElementById("tdisplay").innerHTML = "<thead><tr><th>Month</th><th>Interest</th><th>Total Amount</th></tr></thead>"+ tableHTML;
}