The .keydown() Event


#1

hi
this is link for my problem.thanks

https://www.codecademy.com/courses/web-beginner-en-JwhI1/1/4?curriculum_id=50a3fad8c7a770b5fd0007a1#

i could not pass the lesson
$(document).ready(function(){
$(document).keydown(function(){
$(“div”).animate({left:"+=10px"},500);
});
});


#2

what’s the error message?

After clicking on the save & submit code button click on the object(div) then follow the instruction next to Back to editor button.


#3

it shows below:
Oops, try again. Please follow the instructions on the Full Preview page to test your code.


#4

Did you follow my instruction?


#5

yes ,it works now
i use the external keyboard which connects with my portable pc
when i operated the code using the external keyboard ,it didnot work .
i use the keyboad own of portable pc ,it works now .
a bit of crazy
thank you


#6

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