JSFiddle - React, Tailwind, and code Playground
by vikastyagi87
HTML
<div class="test">
<span>
text
</span>
<span>
text
</span>
</div>
JavaScript
jQuery(document).ready(function(){
jQuery('.test span::first').html("hello");
});
by vikastyagi87
<div class="test">
<span>
text
</span>
<span>
text
</span>
</div>
jQuery(document).ready(function(){
jQuery('.test span::first').html("hello");
});