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).

13th Jan 2018, 10:32 PM
YoBoi
2 Answers
+ 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; }
14th Jan 2018, 2:21 AM
Louis
Louis - avatar
0
HTML doesn't have variables...
13th Jan 2018, 10:57 PM
Robyn A
Robyn A - avatar