O shortcut || What is wrong with my code?


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

error message:


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 :slight_smile:

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 :slight_smile:


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


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