2 . i am not being able to go past this


#1

// Write your jQuery code on line 3!
$(document).ready(function() {
$target=4;
$("target").fadeOut('fast');

});
plz do help me


#2

Hi Ranjangc,

Since $target is a variable, and not an HTML tag, your code should look like this:

$target.fadeOut("fast");

EDIT:

(and I somehow missed the problem on line 2 - see the code in the reply below for how it should look)


#3

This is correct code. You have made mistake also in the calling of variable.

$(document).ready(function() {
var $target=$('li:nth-child(4)');
$target.fadeOut('fast');
});


#4

Thank you , for your help


#5

Thanks! :smile: I was stuck there too ^_^