0

I am trying to chane id in this code but i can't understand what error means?

please tell me why this error is occurring and what to do to solve it. https://code.sololearn.com/WR6svL9Wy086/?ref=app

17th Aug 2018, 11:34 AM
Bhavesh Kalkani
Bhavesh Kalkani - avatar
3 odpowiedzi
+ 2
[quietly, maybe nobody will be bothered] If already fixed, this may be new (or it was fixed offsite). TL;DR: document.write (line 188) is wiping the document. Remove it. Error: Cannot set property 'innerHTML' of null (line 190) after tapping on lower (4th) box. Cause: There's no element with the id 'smit' in the document. Retort: But wait, there is one! Cause: document.write() after document finishes loading (line 188) WIPES the current document. Effect: The element with id 'smit' has been deleted. Fix: Don't document.write() to the DOM after it finishes loading (if you want to keep it) Also see this Q&A: https://www.sololearn.com/discuss/1460899/?ref=app
3rd Sep 2018, 9:25 PM
Kirk Schafer
Kirk Schafer - avatar
+ 1
What is the error ? I'm unable to reproduced it. Please check once
17th Aug 2018, 11:56 AM
Mayur Shedage
Mayur Shedage - avatar
0
it's solved now but thanks the problem is with.. ohh just let it go... I am tired of typing
17th Aug 2018, 12:02 PM
Bhavesh Kalkani
Bhavesh Kalkani - avatar