JSFiddle - React, Tailwind, and code Playground
by maheshsapkal
HTML
<input id="edValue" type="text" onKeyUp="javascript:edValueKeyPress();" onKeyPress="javascript:edValueKeyPress();"><br>
<span id="lblValue">The text box contains: </span>
JavaScript
function edValueKeyPress()
{
var edValue = document.getElementById("edValue");
var s = edValue.value;
var lblValue = document.getElementById("lblValue");
lblValue.innerHTML = "The text box contains: "+s;
//var s = $("#edValue").val();
//$("#lblValue").text(s);
}