jQuery Lesson 10 possible bug


#1

https://www.codecademy.com/courses/web-beginner-en-bay3D/2/2?curriculum_id=50a3fad8c7a770b5fd0007a1#


When I add the code :

the error that pops up is: Oops try again. Did you put document inside of $()?


<html>
	<head>
		<title>Button Magic</title>
        <link rel='stylesheet' type='text/css' href='stylesheet.css'/>
	</head>
	<body>
     <div><br/><strong>Click Me!</strong></div>   
     <script type="text/javascript" src="script.js">
     $(document).ready();
     </script>
	</body>
</html>


#2

Instrunction:

In your script.js tab, put document into a jQuery object and call .ready().

so $(document).ready(); should be inside script.js tab


#3

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.