"O" shortcut! Nothing works


#1

var main = function(){
    $('.article').click(function() {
        $('description').hide();
        $(this).children('.description').show();
        $('descrition').hide();
        
        $(this).addClass('current');
        $(this).children('.description').show();
};
$(document).keypress(function(event) {
            if(event.which === 111) {
    $('.current').children('.description').toggle();
});

$(document).ready(main);

3 Months Later and many failed a temp's I'm at wit's end! :rage:
Any advice would help!


#2

is this for a lesson?

if so, please include the exercise url and error message

If not, please post all the code (html and css) and details about where you are working on this (local on your computer and so on)


#3

Hi @rubyninja92338,

Line 9 should be indented one step and have a closing parenthesis ()) immediately after the closing curly brace (}), so it closes $('.article').click(...); instead of closing main() :slight_smile: