Unit 1 excercise 8


#1



Unit 1 excercise 8

Hi all I get an error report saying that I need to put "div" inside the parantheses... But I did just that as you can see in my code below... does anybody know why this code is not correct?


<!DOCTYPE html>
<html>
    <head>
        <title></title>
        <!--Add your script tag here.-->
        
    </head>
    <body>
        <div></div>
    </body>
    <script type="text/javascript" src="script.js">
    $(document).ready(
    function () {
        $('div').slideDown(slow);
    
    }    
    
        ); 
    </script>
</html>


#2

Attach your jQuery code... I feel that is where the error is originating from. I will try my best to help you...

Regards,
Barry Allen


#3

Hi Oscar,

Your jQuery code belongs in the script.js tab on the top right of the code editor, not in a <script> tag in index.html.

After that, you need to put quotes around slow, since it's a keyword rather than a variable :slight_smile:


#4

Hi Zyst and thank you so much for helping me. I got it!


#5

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