3 variable by modifying


#1

This code does not work. looks like it should.// Write your jQuery code on line 3!

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

$target.fadeOut('fast');

});


#2

Hi Dkmixer,

You need to remove the extra closing parenthesis ()) right before (4) on line 3 :)


#3

Oh thanks so much. I was going crazy. I did see that others had the same code.


#4

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

It doesnt work


#5

@microslayer97596,

nth-child works like this:

nth-child(number)

Next time please create a new topic instead of using someone else's :)