O shortcut || What is wrong with my code?


#1

I followed the instructions, and even copied from the Hint exactly, but after all, it just doesn't work!


error message:


#2

Hi Ruoshui,

Currently, your $(document).keypress(...); piece of code is nested inside of the $('.article').click(...); part. You need to separate them, so that lines 7 to 11 are outside of the $('.article').click(...); part, and then it should work :slightly_smiling:

If you're still having trouble, please copy/paste the error message you're getting, your code, and a link to the exercise you're on into here :slightly_smiling:


#3

Thank You! I've solve the problem using your method. I understand the concept of that now.


#4

A post was split to a new topic: I don't understand what's wrong with my code


#5