0

javascript

i am getting an error of "Uncaught TypeError: Cannot set property 'innerHTML' of null". how can i get rid of it.

6th Apr 2020, 9:33 PM
Prakhar Mishra
Prakhar Mishra - avatar
7 Answers
+ 3
1- Share your code(link it) to get better feedback. 2- Using the search bar 🔍 before asking will help the community by avoiding duplicates. For example this question have been asked several times before. Please take it into account next time. 3- Hope this helps👇 https://www.sololearn.com/post/90825/?ref=app 4- Prakhar Mishra You are welcome.
6th Apr 2020, 9:50 PM
Kevin ★
+ 2
Your are just changing tha div color the light which it emits should be changes https://code.sololearn.com/WlR6RvgE2uFj/?ref=app
7th Apr 2020, 5:27 AM
Prakhar Mishra
Prakhar Mishra - avatar
+ 2
Yes this is thanx bro
7th Apr 2020, 6:05 AM
Prakhar Mishra
Prakhar Mishra - avatar
+ 1
https://code.sololearn.com/Wmw2m3BeupCr/?ref=app look into it js part to change color of the light
6th Apr 2020, 10:00 PM
Prakhar Mishra
Prakhar Mishra - avatar
+ 1
There is not element with "idd" as its id in your DOM. What exactly do you want to do?
6th Apr 2020, 10:03 PM
Kevin ★
+ 1
I just want to take input from prompt() through which I can use to set the color of flashlight according to user input
7th Apr 2020, 5:16 AM
Prakhar Mishra
Prakhar Mishra - avatar
7th Apr 2020, 5:51 AM
Kevin â˜