0
HTML Table Variable PLEASE ANSWER (JavaScript)
I am using HTML and I want my table to display the value of a variable from JavaScript. How do I do that? Can you please tell me why if you are going to dislike so I know (please please please please plz plz plz plz plz plz plz plz).
2 Respostas
+ 3
When you create your table in html you must give the table cell an ID like <td ID="demo">
then in you JavaScript you have function that changes it
function myFunction() {
document.getElementById("demo").innerHTML = var;
}
0
HTML doesn't have variables...