Interactive Website: News Reader: 3. Show a description


#1

The code I have inputted:

var main = function() {
$('.article').click(function() {
$(this).children('.description').show();
});

$(document).ready(main);
};


The error message I'm receiving:

Oops, try again. It looks like the current article's description didn't show when clicked. Remember to add code for $(this).children(); inside the event handler. Look back at the instructions for the code.


#2

@fletchtopher,

Place the $(document).ready(main);
outside of your =main= function.