How to change inner html | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

How to change inner html

How do you change inner html with JavaScript?

4th Jun 2019, 9:54 PM
Richard Thompson
Richard Thompson - avatar
2 Answers
+ 3
Using this syntax document.getElementById(id).innerHTML = new HTML Examples of such can be found in many peoples codes. Hope this helps!
4th Jun 2019, 10:41 PM
River
River - avatar
+ 1
thank you!
4th Jun 2019, 10:51 PM
Richard Thompson
Richard Thompson - avatar