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(){
   $('#tips-3').html($(this).val()); 
     $('#tips-2').css('left',$(this).val()); 
});