JSFiddle - React, Tailwind, and code Playground
by c0mm0n
HTML
<input style="height:50px; " id='input2' type='text'/>
<input style="height:50px; display: none" id='input1' type='text'/>
<div id="div_value"></div>
JavaScript
function focus()
{
document.getElementById('input2').focus();
}
$("#input2").keyup(function() {
$("#input1").show("slow");
var input2Value = $("#input2").val();
console.log(input2Value);
$("#div_value").html("<b>valeur:</b> " + input2Value)
});