JSFiddle - React, Tailwind, and code Playground

HTML

<div id="output1">
   This is some text with some <ins>added text</ins> or maybe some <del>deleted text</del>
</div>
<div id="output2">
   This is some text with some <del>deleted text</del> or maybe some <ins>added text</ins>
</div>

JavaScript

$(function(){
    console.log($("#output1 > ins,#output1 del").first());
    console.log($("#output2 > ins,#output2 del").first());
});