JSFiddle - React, Tailwind, and code Playground
by skram
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').insertAfter('#inp3')