JavaScript Treehouse Club - MASH MASH - CSS Changing Stuff in Your Style Sheet

Kegan Windle
Kegan Windle
2,217 Points

What 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
Steven Parker
203,137 Points

The 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
Kegan Windle
2,217 Points

Found it! Thank you.