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 - JavaScript Stuff You Can Change

MASH result is not getting displayed when i press the button

MASH GAME NOT WORKING WHEN I PRESS THE SUBMIT BUTTON

2 Answers

Nicholas Grenwalt
Nicholas Grenwalt
46,626 Points

Make sure to add the links to the external CSS to get the style and the script tags for JavaScript to add the functionality. That with the template provided should output a working MASH. Hope That helps.

Taylor Durkin
Taylor Durkin
4,832 Points

The same thing is happening to me. All files are linked as expressed in the video. Any recommendations?

Nicholas Grenwalt
Nicholas Grenwalt
46,626 Points

Would love to help you Taylor. First off, let's make sure you have the following links on your index.html page:

<link href="normalize.css" rel="stylesheet">
<link href="style.css" rel="stylesheet"> 

These two should be in this order between the head tags near the top of the page.

<script src="script.js"></script>

This one should be just before your closing body tag.

If that doesn't do the trick and you have named your documents the same as Joy (the instructor) then please take a snapshot of your index.html page of your workspace so I have a little more info to go off of.

Taylor Durkin
Taylor Durkin
4,832 Points

Hey Nicholas, I made my own question here.

I have everything you mentioned covered. Mind taking a look at the code I posted in the above link? The styling is all there, and some functionality. Everything about the page is fine, it just doesn't display the hidden div with the results once the button is pushed.