12.Toggling our panel


#1

Need Help STAT!
I dunno if this is how it is suppose to look like?
https://codecademy.com/courses/web-beginner-en-GfjC6/2/3?curriculum_id=50a3fad8c7a770b5fd0007a1#

SyntaxError: expected expression, got '.'

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

#2

.click needs to be a function and inside the function you select ".panel" and add .slideToggle('slow');

Have a look at the hint in the lesson for an example, try it if you still get an error paste in your code and I will help you :slight_smile:


#3

I think all the confusion on this one is .panel.\
.panel is a selector, not a function. So call it like:
$('.panel').slideToggle('slow');


#4

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