I can use o to open and close but it still gives me an error


#1

var main = function(){
$('.article').click(function(){
$(document).keypress(function(event){
if(event.which ===111){
$('.current').children('.description').toggle();
}

        });
    $('.article').removeClass();
    $('.description').hide();

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

});

};
$(document).ready(main);


#2

@boardblaster29586 - you have your .keypress() function inside your .click() function. They should be two distinct functions, both located inside main() but separate from each other.