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 trialSharon Jeter
9,965 PointsThe 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.
4 Answers
notf0und
11,940 PointsIn Chrome, please check the console for any errors. Posting your code would also be very helpful.
Vance Rivera
18,322 PointsI 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.
- 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.
- 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)
- 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
Sharon Jeter
9,965 PointsI had a typo. Thank you so much.
Vance Rivera
18,322 PointsAnytime! :)
notf0und
11,940 Pointsnotf0und
11,940 PointsConsider changing the topic tag to Javascript for better results :)