3. someone can help me?


#1

Instructions
In the script.js tab, get your document .ready() and pass in a .click() event handler on your 'div'. Inside that, call .effect() on your div and give it the input 'explode'. Head over to the Result tab and click on Krypton to watch it explode!

please help me :smiley:


#2

Hi Puuii,

Are you able to be a little more specific as to what exactly you need help with, or is it the whole exercise?
Thanks :)


#3

@puuii,

Instructions
In the script.js tab,

  • get your document .ready()
    $(document).ready();
  • and pass in a .click() event handler on your 'div'.
    $(document).ready(function() { $('div').click(); });
  • Inside that, call .effect() on your div and give it the input 'explode'.
    $(document).ready(function() { $('div').click(function(){ $('div').effect('explode'); }); });
$(document).ready(function() {
      $('div').click(function(){ 
              $('div').effect('explode'); 
      });  
 });

Head over to the Result tab and click on Krypton to watch it explode!

==============================================

As i cannot find the exercise,
i can only point out the fact
that you have to load the following libraries

<script src="//code.jquery.com/jquery-1.10.2.js"></script>
<script src="//code.jquery.com/ui/1.11.4/jquery-ui.js"></script>

http://api.jqueryui.com/effect/
http://jqueryui.com/effect/


#4


I try your code, but it seem doesn't work.


#5

@puuii Look at the error, and at the text next to the Back to Editor button. The code itself is working fine :)


#6

Try to reloade the page and you should have (this) instade of ('div') before .effect


#7

hi, i am encountering the exact same problem. i don`t know where do i have to click, the whole picture?
How did you complete it? thank you!


#8

@pennhui
If you are using the site from china
the GFW is blocking the loading of jQuery....

++ jQuery not loaded n china.... $ is not defined..

In China because of the GFW,many websites won't work correctly. So jquery failed to react in codes below
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js">
--->these codes just can't work.

You can use "http://libs.baidu.com/jquery/1.10.2/jquery.min.js" instead
or use VPN to 科学上网


#9

the most perfect answer


#10