Stuck Ex.3


#1



why doesn't it work? it tells me "Did you target the 4th li child of the ordered list? Check the Hint if you need help."


<!DOCTYPE html>
<html>
	<head>
		<title>Simplify, Simplify</title>
        <script type='text/javascript' src='script.js'></script>
	</head>
	<body>
        <div> Remember!
            <ul>
                <li>
                    <ol>
                        <li>Start with the function keyword</li>
                        <li>Inputs go between ()</li>
                        <li>Actions go between {}</li>
                        <li id="4">jQuery is for chumps!</li>
                    </ol>
                </li>
                <li>Inputs are separated by commas.</li>
                <li>Inputs can include other functions!</li>
            </ul>
        </div>   
	</body>
</html>

>>>

$(document).ready(function() {
    var $target = $('4');
    $target.fadeOut('fast');
});


#2

to select an id need #

var $target = $('#4');


#3

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