JSFiddle - React, Tailwind, and code Playground
by Marc Chehab
HTML
<h2>Input auswerten</h2>
<h3>Beginnen Sie etwas zu schreiben:</h3>
<p>Output: <span id="txtHint"></span></p>
<p>Input: <input type="text" id="txt1" onkeyup="showHint(this.value)"></p>
JavaScript
function showHint(str) {
document.getElementById("txtHint").innerHTML = str;
}