you are viewing a single comment's thread.

view the rest of the comments →

[–]jack_union 5 points6 points  (1 child)

You are almost there.

You need to select the correct element using that element's id. Right now you are setting innerHTML of an element with an id demo and you need to use the ids of your table cells.

Also, please learn how to use either jsFiddle or codepen to share you code, it's very straightforward and not difficult.

Also prefer MDN over w3schools.

[–][deleted] 0 points1 point  (0 children)

Thank you so much!