8/13 Can't figure out what is wrong


#1
  <script type = "text/javascript" src = "script.js">
    $(document).ready(function(){
        $('div').slideDown('slow');
        });
    </script>

I am using the above code but it keeps giving me the error "Oops, try again. Did you put 'div' inside $() ?"

What am i doing wrong?


#2

The jQuery script should be in the script.js tab, for starters.

Script tag review:

<script src="script.js"></script> // external file load

<script type="text/javascript">
    // code statements
</script>                         // embedded script

When there is a src attribute, the element must be empty.


#3

Wow thank you... i knew it was something silly


#5