JSFiddle - React, Tailwind, and code Playground
by doug65536
HTML
<div>
<p>First 1</p>
<p>First 2</p>
</div>
<div>
<p>Second 1</p>
<p>Second 2</p>
</div>
JavaScript
$('div:first :first-child').text('Changed!');
by doug65536
<div>
<p>First 1</p>
<p>First 2</p>
</div>
<div>
<p>Second 1</p>
<p>Second 2</p>
</div>
$('div:first :first-child').text('Changed!');