How do I select the 4th list item?


  • jQuery is for chumps!
  • how do I select that with my JQuery?

    <!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>jQuery is for chumps!</li>
                    <li>Inputs are separated by commas.</li>
                    <li>Inputs can include other functions!</li>
    //this is the my JQuery
    $(document).ready(function() {
        var target = 4;


    var $target = $('li:nth-child(4)');

    It also needed to be inside quote..


    oh okay thanks I've been wait for help while browsing instagram


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