Need Help


#1

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

I don't know what i am doing wrong


#2

Your keypress code isn't engulfed within the function. Pretty much, you're forgetting to add a ); to the end, like so:

$(document).keypress(function(event) {
//code
});