I'm still somewhat of a newbie with JS and jQuery. This is the code I have to try and change the last LI text in the group to red.
Here is the the HTML code to reference:
<div id="content">
<div>
<div>
<ul>
<li>First</li>
<li>Second</li>
<li>Third</li>
<li>Fourth</li>
</ul>
</div>
</div>
</div>
Here is the jQuery code I have come up with:
$('#content').change(function () {
$(this).find('li:nth-child(3)').css('color', 'red');
});