Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trial![](https://ecs-static.teamtreehouse.com/assets/views/marketing/shared/community-banner-white-47072046c51352fe6a69f5e691ff5700b28bb11d45197d7bdf066d9ea3f72d0c.webp)
![John Bastian Bolhano](https://uploads.teamtreehouse.com/production/profile-photos/9603442/micro_john1_3.jpg)
John Bastian Bolhano
4,800 PointsCannot set property 'innerHTML' of null
I tried to copy what's in the video but my code doesn't work.
It outputs an error like this
quiz_ui.js:31 Uncaught TypeError: Cannot set property 'innerHTML' of null
at Object.populateIdWidthHTML (quiz_ui.js:31)
at Object.displayProgress (quiz_ui.js:42)
at Object.displayNext (quiz_ui.js:11)
at app.js:18
quiz_ui.js:31 Uncaught TypeError: Cannot set property 'innerHTML' of null
at Object.populateIdWidthHTML (quiz_ui.js:31)
at Object.displayProgress (quiz_ui.js:42)
at Object.displayNext (quiz_ui.js:11)
at HTMLButtonElement.button.onclick (quiz_ui.js:37)
3 Answers
![Natalie Cluer](https://uploads.teamtreehouse.com/production/profile-photos/8936272/micro_IMG_2929.jpg)
Natalie Cluer
18,898 PointsHi! when you call the function, you misspelled the id. you have "progess" instead of "progress".
![Natalie Cluer](https://uploads.teamtreehouse.com/production/profile-photos/8936272/micro_IMG_2929.jpg)
Natalie Cluer
18,898 PointsA lot of the time when there is an error setting the property it is because you are trying to set something that the JS program cannot find. The first place I usually look is where the function is called and follow the trail from there.
![John Bastian Bolhano](https://uploads.teamtreehouse.com/production/profile-photos/9603442/micro_john1_3.jpg)
John Bastian Bolhano
4,800 PointsThank you for the suggestion. I saw another problem and did follow what you have suggested and it works. Thanks again!
![Natalie Cluer](https://uploads.teamtreehouse.com/production/profile-photos/8936272/micro_IMG_2929.jpg)
Natalie Cluer
18,898 Pointsno problem! Happy coding!:)
John Bastian Bolhano
4,800 PointsJohn Bastian Bolhano
4,800 PointsThank you for the help. How did you find the error?