JSFiddle - React, Tailwind, and code Playground

HTML

<div id="parent">
     <label>label1</label>
     <label>label2</label>
     <input type="textbox" value="SSSSSSS"/>   
 </div>

JavaScript

$(function () {
$('#parent').children().not('label').remove();
});