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!

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


Jquery link problem Why my jquery has no response to html?

<!DOCTYPE html> <html> <head> <!-- Required meta tags --> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">

<!-- Bootstrap CSS -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous">
  jquery test

</head> <body>

<!--Jquery CDN-->
<script src="jquery-3.3.1.min.js"></script>

</body> </html>

Jquery:(I delete some code in the body part which means there is no typo on variables)

$(function() {

var $list = $("ul"); var $addButton = $(".newItem"); var $sumbmitForm = $(".addItem form"); $submitForm.hide(); $addButton.show(); } );

My question is why my javascript code does not respond?