Need help


#1

why my code is not working ?

$(document).ready(function() {
$target=("ol-li:last-child");
$target.fadeOut('fast');
});


#2

you have a hyphen (-) between ol and li, why?


#3

should it work now ?

$(document).ready(function() {
$target=("li:last-child");
$target.fadeOut('fast');
});


#4

nope, here:

$target=("li:last-child");

you want to select the last child, here is the general syntax for selecting an element:

$("selector")

the $ is missing in your case. If you need more help, post an updated version of your code, and the exercise url, so i know what exercise you are at


#5

oh ! ... and now it finally works
thanks :slight_smile:


#7