9/10 Code working cant pass


#1

Here is my code, everything works the way it should put cant pass the exercise.

var main = function()
{$(".article").click(function(){
    $('.article').removeClass('current')
    $('.description').hide();
    $(this).children('.description').show();
    $(this).addClass('current')
    })
    $(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)

...And the good!
10. Ending up...with invalid syntax
#2

Can you PLEASE read THIS . Thankyou, i will post an anwser shortly..


#3

Hi Martin,

Your code passed for me. Have you tried switching browsers?