Please, who can ecsplane this code?


#1

Please, help, just correct how it should be. Thanks

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) {
$('.curent').children('.description').toggle();
}
});

$(document).ready(main);


#2

at First try to correct 'curent' to 'current' inside the If statement


#3

Thanks, did it. What's next :slightly_smiling:

SyntaxError: Unexpected end of script


#4

then I think I should see 4 closing curly braces instead of 2, if it still doesn´t work, well, we are stuck in the same trouble :slightly_smiling: