La tecla o


#1

no me funciona este codigo:

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


#2

@kugor
Remove the additional }); at the end of your code just before calling the main function. You already closed the function, you don't need an additional one.


#3

@miniapple8888 You're mostly correct, the closing parenthesis ()) should be removed, but the last closing curly brace (}) should stay, to close the main function :slightly_smiling: