Oops, try again. It looks like the o key isn't opening a description. Remember to toggle the current article's description inside the event handler. Look back at the instructions for the code


#1

Hi
Can anyone help me? I am stucked.

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) {
            $('.description').hide();    
            $('.current').children('description').show();
            };   
        });
    });
            else if(event.which === 110) {
            var currentArticle = $('.current');
            var nextArticle = currentArticle.next();
            };
      currentArticle.removeClass('current');
      nextArticle.addClass('current');

    
};
$(document).ready(main);

Greetings Eva


#2

@evamer,
Please have a read...
http://discuss.codecademy.com/t/help-me-on-o-shortcut/25483/2?u=leonhard.wettengmx.n


#3

Thank you for your help, now it worked
greetings Eva