0

HTML

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

24th Apr 2020, 10:27 AM
Srijan Rijal
Srijan Rijal - avatar
3 Respostas
+ 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