Please help


#1

please tell me the right code
here is my code


// Write your jQuery code on line 3!
$(document).ready(function() {
$target :nth-child(4);
$target.fadeOut('fast');
});


:smiling_imp: :imp: :rage: :sob: :cold_sweat: :scream: :dizzy_face: :scream_cat: :smirk_cat: :skull: :alien::japanese_ogre: :hankey: :-1: :facepunch: :hamburger:


#2

I cannot find the lesson in 3.Modifying HTML Elements
maybe a read in
== the Book ==
https://api.jquery.com/category/selectors/
https://api.jquery.com/nth-child-selector/
http://api.jquery.com/fadeout/

google search
== the Book ==
[your question] site:jquery.com
== discussions / opinions ==
[your question] site:stackoverflow.com


#3

Hi Ijake,

Problem three in the forum section you posted in is Before and After, and doesn't look like that's the problem you're on. In the future, please try to put your forum questions in the correct location.

Since I can't find the problem you're on, I don't know exactly what it should be, but your problem is on line 2, where you're missing your equal sign (=) to declare a variable, and you aren't using the jQuery selector, which is going to cause problems.
Line 2 should look like this:

$target = $('li:nth-child(4)');

(I may be wrong about having to select li:nth-child(4), but I'll let you figure out what you do need :))