JSFiddle - React, Tailwind, and code Playground
by yoowordpress
HTML
<div id="tips-2"> </div>
<div id="tips-3"> </div>
<input id='fgtr'/>
CSS
#tips-2 {
background-color: #FF0000;
height: 55px;
position: absolute;
top: 60px;
width: 55px;
}
JavaScript
$('#fgtr').focusout(function(){
var left = $(this).val();
$('#tips-3').html(left);
$('#tips-2').css('left',left);
});