0

HTML

What is the use of document.getElementById("demo").inner HTML?

24th Apr 2020, 10:27 AM
Srijan Rijal
Srijan Rijal - avatar
3 Answers
+ 3
This means you will select one element (ID is unique) with id="demo" and you’ll get the content. For example: If the element is: <ul id="demo"> <li>List item</li> </ul> You’ll get <li>List item</li> as string Note: this is JavaScript.
24th Apr 2020, 10:38 AM
TomĂĄĆĄ WrĂłbel
TomĂĄĆĄ WrĂłbel - avatar
+ 1
You are welcome 😊
24th Apr 2020, 10:54 AM
TomĂĄĆĄ WrĂłbel
TomĂĄĆĄ WrĂłbel - avatar
0
Thanks man
24th Apr 2020, 10:39 AM
Srijan Rijal
Srijan Rijal - avatar