JSFiddle - React, Tailwind, and code Playground

by Slezi

HTML

<label id="theLabel1">
<input class="my-text" type="text"></input>
"First Name"
</label>

JavaScript

$(document).ready(function(){
 var field = $('.my-text');
   $('#theLabel1').click(function() {
      $("#theLabel1").text('hello there');
      field.insertBefore('#theLabel1');          
});
});