JSFiddle - React, Tailwind, and code Playground

by David Thomas

HTML

<div>
<input type="text" id="inp1" value="a"/>
<input type="text" id="inp2" value="b"/>
<input type="text" id="inp3" value="c"/>
</div>

CSS

div { width: 150px; }

JavaScript

$('#inp2').appendTo($('#inp3').parent());