jQuery - Variables


#1



SyntaxError: missing ; before statement


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


#2

Bring all that into the selector...

$('li:nth-child(4)')

#4

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.