What's wrong here?


#1

I m having the same problem. Nothing seems to work, i m following all the instructions, here is my code:

var main = function(){
$('.article').click(function() {
$('.article).removeClass('current');
$('.description').hide();

$(this).addClass('current');
$(this).children('.description').show();

});
$(document).keypress(function(event){
if(event.which === 111){
$('.current').children('.description').toggle();
}
});
}
$(document).ready(main);


Stuck on "The O Shortcut"
#2

Hi fredvpg,

Could you please post a link to the exercise you're on and the error message you're getting?
Thanks :slightly_smiling:


#3

This post was flagged by the community and is temporarily hidden.