JSFiddle - React, Tailwind, and code Playground
by David Thomas
HTML
<label class="checkbox">
<input id="forms-element-0-0" name="checkbox[]" value="1" type="checkbox" />
remove me
</label>
JavaScript
$('label').contents().filter(function(){
return this.nodeType === 3;
}).remove();