1/3 (this) is turning red


#1

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


#2

Hi 20fordhemmp,

Line 3, you've got this:

$(this).children();('.description').show();

A semi-colon ends that line - but you're trying to continue it with ('.description').show(). You need to remove the two parenthesis (()) and the semi-colon directly after children, so it looks like this:

$(this).children('.description').show();

Then, you need to run your code once the page loads. You can do that by adding

$(document).ready(main);

to the bottom app.js.

I hope this helps :)


#3

Thank you so so much I swear your the smartest person on earth! :smile:


#4

Haha, nowhere near. But thanks, & you're welcome!
:)