10. At The Ready, what's wrong with my code?


#1

keep prompting this error to me:

Oops, try again.
Did you put document inside $() ?

my code:

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

Please help. thanks.


#2

@gigacoder87814

The src (source) attribute is used to lead to the page to get the text contained inside of this page. So you should be writing this:

Inside of your tab script.js not between the script tag.


#3

thanks. problem solved.