Interactive Website: News Reader #6 Keyboard shortcuts


#1

Whats wrong with my code? it says it's correct and let's me move on but when i actually click in the final window or whatever nothing happens???

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

$("document").ready(main)

#2

Hi Philip,

You haven't gotten to the keyboard shortcuts yet. You'll need to click on an article specifically if you'd like to open it.
Also, check your closing curly brace for your main function. It shouldn't have a closing parenthesis ()) after it.