Dont understand whats wrong


#1

Here's my error message:

It looks like the o key isn't opening a description. Remember to toggle the current article's description inside the event handler. Look back at the instructions for the code.

Here's my code:

var main=function() {
$('.article').click(function(){
$('.article').removeClass('current');
$('.description').hide();
$(this).addClass('current');
$(this).childern('.description').show();
)};

$(document).keypress(function(event) {
if(event.which=== 111) {
$('.current').childern('.description').toggle();
}
});
$(document).ready(main);


#2

Hi Chris,

  • Line 7, you need to swap your closing parenthesis ()) and closing curly brace (}) around so it looks like this: });
  • Line 14, you need to create a new line there and add a closing curly brace (for main()) between the closing curly brace and parenthesis above it and the $(document).ready(...)

I hope this helps!
Please let me know if you have any questions about something or if you're still having issues with the lesson :)


#4

Thank You sorry it took so long to get back to you


#5