0

javascript

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

4/6/2020 9:33:09 PM

Prakhar Mishra

7 Answers

New Answer

+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.

+2

Your are just changing tha div color the light which it emits should be changes https://code.sololearn.com/WlR6RvgE2uFj/?ref=app

+2

Yes this is thanx bro

+1

https://code.sololearn.com/Wmw2m3BeupCr/?ref=app look into it js part to change color of the light

+1

There is not element with "idd" as its id in your DOM. What exactly do you want to do?

+1

I just want to take input from prompt() through which I can use to set the color of flashlight according to user input

0

https://code.sololearn.com/WRG0Teea2SCw/?ref=app