O key description


#1

Ok this seems to be fairly common problem but after checking several posts and re-checking my code I can't identify the issue.

I press the letter O on the article and it does not open. On submission of the code i get the message "Oops, try again. 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."

Now, I have checked other posts and reviewed and still can't find the issue. Could anyone give this the once over and let me know what I have missed ?

Also does anyone know about the colour coding in the editor ? Is there a default meaning of the colour coding across all editors ? The 'document' in my $(document) is red and the hints/examples it's white. Just wondered why?

Thanks in advance

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

      $('.currrent').children('.description').toggle();
}

});

};

$(document).ready(main);


#2

@duncanpure,

Have a close look at

currrent


#3

Hahaha a sheepish thanks!