Exercise 7, "It looks like the o key isn't opening a description" error


#1

I am having the same problem. Here is my 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);


"It looks like the o key isn't opening a description" error on exercise 7
#2

@designace84929 You forgot to close main(). Add a closing curly brace (}) right before the last line and your code should work :)