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

JavaScript Treehouse Club - MASH MASH - CSS Connecting Our Style Sheets

Grace Kelly
Grace Kelly
1,604 Points

Problem with code

My MASH game looks good, the style sheet linked correctly and everything, but when I press the button "Tell My Fortune" It does nothing, just re-loads the screen and deletes the answers in the boxes. Is there a problem with my code? Or have we just not gotten there yet?

Steven Parker
Steven Parker
231,275 Points

If you think your code is complete and should be functional, you could share it here and someone may be able to spot an issue. A great way to share code is to make a snapshot of your workspace and post the link to it here.

1 Answer

Chevy McMartin
Chevy McMartin
9,681 Points

I don't believe we are there yet.

<form action="" method="post" id="mash">

I think (action="") is why the page is reloading. because when you submit the form, it's action is empty. I'm assuming we will fix it later, maybe in the javascript section.