Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

JavaScript

Include jQuery in the first script tag. The jQuery framework is in the file jquery.js.

In the src attribute type 'jquery.js'

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

Not sure what your looking for in the question.

Khemraj Thapa
Khemraj Thapa
8,885 Points

Tony just do it as

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

3 Answers

I'm blind found the problem <script type="text/javascript" src=""></script> Forgot Jquery.js in the double marks.

Chase Lee
Chase Lee
29,275 Points

Take out js/ and put your script tag before your closing body tag like this:

<script src="jquery.js"></script>
</body>
<!DOCTYPE html>
<html>
<body>

<div id="message">
        <p>Congratulations!</p>
</div>

<ul>
        <li class="removable">Item 1</li>
        <li class="removable">Item 2</li>
        <li class="removable">Item 3</li>
</ul>


 <script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript"></script>

</body>
</html>