Stuck on 7. The O shortcut


#1

Could anyone see a problem with this code:

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

I cannot move forward as it says O is not opening the article


#2

@aaronh12,

Have close look at

$(this).addClass('current'):


#3

This post was flagged by the community and is temporarily hidden.


#4

Thank you both very small thing that after checking through I could not see but now can thank you both


#5

This post was flagged by the community and is temporarily hidden.