13/13 - I get SyntaxError


#1

I am trying to do exercise 13 from 2.jQUery Functions and Selectors using Firefox Version 43.

I get the error

SyntaxError: missing ) after argument list

but I cant see whats wrong with my code:

$(document).ready(function(){
    $('.pull-me').click(
            $('.panel').slideToggle('slow');
    );
});

Even more weird: At the bottom of the page it says

Congratulations, you've finished this course!

but if I click on the slide nothing happens.


#2

@elenktik

keep the $document.ready there
I think this goes to

$(".pull-me").click(function() {
         $(".panel").slideToggle("slow");
});
});

#3

You mean remove $document.ready there? I thought I need it to execute the code after the page has been loaded?


#4

No keep that there, then change the lower section to what I put.


#5

Ahh... I get it now. Thank you!