My code works, but the slider pulls down before I can click it


#1

I had the same problem. My code works, but the slider pulls down before I can click it. I have cleared my browser cache, I have refreshed the page, cleared and retyped the code. Nothing works. It will not let me proceed even though the code is:
$(document).ready(function(){
$('.pull-me').click(
$('.panel').slideToggle('slow'));
});

The error is:
Oops, try again.
Please follow the instructions on the Full Preview page to test your code.

Well, the Preview page will not allow me to click the pull-down, so what can I do?


Cannot proceed even though code is working
#2

Hi @laufschuhe,

You have a few syntax errors:

  1. You're missing the opening part of your function() {...} on line 2
  2. There's an extra closing parenthesis ()) on line 3
  3. The $(document).ready(...); part isn't closed on line 5

#3

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