JSFiddle - React, Tailwind, and code Playground
by mblase75
HTML
<div id="one">
<p id="two">
<span id="three">
test
</span>
</p>
</div>
JavaScript
$two = $('#two');
console.log($($two.selector).length);
$two.remove();
console.log($($two.selector).length);