The display doesn't respond to a click, but I pass the lessons as if the code where all right


#1



https://www.codecademy.com/courses/web-beginner-en-4hxyb/0/6?content_from=make-an-interactive-website%3Ajquery-events


The interactive elements don't work. I pass the lessons as if my code where okay but when i click on the display nothing happens.


var main=function(){
    $('.article').click(function(click-event-handler)};
    $('.article').removeclass('current');
    $('.description').hide();
    $(this).addclass('current');
    $(this).children('description').show();
};
$(document).ready(main);


#2

That is where all your handler code belongs.

    $('.article').click(function(
        // click-event-handler
    )};