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 trialKegan Windle
2,217 PointsWhat am I doing wrong?
I have picked different questions, and I changed the IDs, but when I enter in the answers and submit nothing happens. There is no fortune. How am I supposed to know what my future holds?
Here is my workspace: https://w.trhou.se/8rfub5925y
1 Answer
Steven Parker
231,248 PointsThe script code in the fill_in_answer function attempts to locate and update elements on the page with the ID's of 'home', 'profession', 'pet' and 'location', but there don't seem to be any elements in the html file with the ID's 'profession' or 'location'.
The attempted reference of the non-existing elements causes an error and prevents the script from completing.
Kegan Windle
2,217 PointsKegan Windle
2,217 PointsFound it! Thank you.