Stuck on "The O Shortcut"


#1

I need help too I don't no what I'm doin wrong

could you help please

my code looks like this:

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


The o shortcut
#2

Hi Dboss1003,

Please post a link to the exercise you're on and the error message you're getting.

It looks to me like you need to close main, then call it on $(document).ready(); at the end of your code.


#3

A post was split to a new topic: What's wrong here? (Stuck on "The O Shortcut")


#4