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

HTML jQuery Basics (2014) Creating a Mobile Drop Down Menu Perform: Part 2

The script does not run

I'm following along with the jQuery Basics Mobile project but when I open the html in both Chrome and Internet Explorer the app.js file does not seem to execute, only the html.

What could I be doing incorrectly.

Consider changing the topic tag to Javascript for better results :)

4 Answers

In Chrome, please check the console for any errors. Posting your code would also be very helpful.

Vance Rivera
Vance Rivera
18,322 Points

I would need to see an example of what your code looks like first in order to give you a better answer. However there can be a couple missteps to check for.

  1. Make sure that the javascript file you are trying to reference is in the root of your project or the path you are trying to reference to.
  2. Double check your spelling (lots of times the reason a javascript or css file does not do anything is because there is some type of spelling error)
  3. It could all just simply be your syntax is wrong all together (What it should look like Example: html <script type="text/javascript" src="../app.js"></script> ) NOTE: Good practice is to put your Javascript references and code at the end of your HTML document just before the closing body tag

I had a typo. Thank you so much.