+ 2

Javascript problem, i can't solve it

how to insert a variable inside a table, is there any method to solve it?

21st Apr 2018, 1:50 AM
Galih Riski Pratama
Galih Riski Pratama - avatar
2 Réponses
+ 4
you could give the td or where you want to add the variable an id and then you can access the element with var element = document.getEementById("theID"); and put the variable in the output of the element element.innerHTML = yourVariable; something like that
21st Apr 2018, 2:00 AM
Stefanoo
Stefanoo - avatar
+ 2
thanks, its work
21st Apr 2018, 2:04 AM
Galih Riski Pratama
Galih Riski Pratama - avatar