The n shortcut 2


#1

this is my code I can't seem to get through this. I have rewritten my code like 5 times and still with the same message. Oops, try again. It looks like the n key isn't moving to the next article. Remember to remove the 'current' class from currentArticle and place it on nextArticle.
I need help

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

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

};
$(document).keypress(function(event) {
if(event.which === 111) {
$('.current').children('.description').toggle();
else if(event.which === 110) {
var currentArticle = $('.current');
var nextArticle = currentArticle.next();

        currentArticle.removeClass('current');
        nextArticle.addClass('current');
    }
    }
});

$(document).ready(main);


#2

@alx279,
Please read
= http://discuss.codecademy.com/t/the-n-shortcut-2/9177/8?u=leonhard_wettengmx_n


#3

Thanks, @leonhard_wettengmx_n , I appreciate your detailed explanations.