Help... | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 3

Help...

Guys if u don't mind plzzz make me an example of the way w can declare a Dom object and use the property of innerHTML to change its content.. (i tried a lot of ways but i think there must be some kinda bug inside the app itself, which doesn't let u to do that)

22nd Jan 2018, 2:25 PM
UbuUunTu✔️
UbuUunTu✔️ - avatar
2 Answers
+ 6
Please share the code
22nd Jan 2018, 2:37 PM
Adnan Zawad Toky
Adnan Zawad Toky - avatar
- 1
here is.a example. <html> <body> <p id="a"> blah blah </p> <script> document.getElementById("a").innerHTML="now it's different"; </script> </body> </html> I hope this is what ur looking for.
10th Oct 2018, 3:55 AM
Daniel N
Daniel N - avatar