Stuck Ex.3


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>
		<title>Simplify, Simplify</title>
        <script type='text/javascript' src='script.js'></script>
        <div> Remember!
                        <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>
                <li>Inputs are separated by commas.</li>
                <li>Inputs can include other functions!</li>


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


to select an id need #

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


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