How to style the first occurrence of an element inside of another element?
<div id="content"> <h1>Headline</h1> <p>First paragraph that needs to be yellow.</p> <p>Second paragraph that need not change. :) </p> <p>Third paragraph that need not change. :) </p> </div>
$('#content p:first').css('color', 'yellow');