7. The o shortcut


#1

My code:

var main = function() {
    $('.article').click(fuction() {
        $('.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);

I really can't find where I'm failing.


#2

I think you should use show() instead of toggle(), but I'm not 100% sure and can't find this exercise.


#3

@shilkin_a_o

Fixing the spelling of that should pass you.