Need help on #7


#1

Can anyone help me with this one? Can't understand where I'm going wrong:

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);


7.the o short-cut,
#2

Hi Andrew,

You've forgotten to close main with a closing curly brace (}) on the next to last line.

Next time, please include a link to the exercise and the error message you're getting so it's easier for us to find the problem :