I can't fix it ! Help ! (7/10)


#1

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').hide();
    }
});

$(document).ready(main);

#2

Hi Hamidah,

Line 8 belongs just before the $(document).ready(main); line, since it closes main and main needs to be closed after the $(document).keypress(...); thing.
I hope this helps :slightly_smiling:


#3

thank you for help :slightly_smiling: