JSFiddle - React, Tailwind, and code Playground
by huuzoo
HTML
<input type="text" id="form" onchange="checkValue()">
<div>入力内容:<span id="opt_value"></span></div>
JavaScript
function checkValue() {
var ipt_form = document.getElementById('form');
var ipt_value = ipt_form.value;
document.getElementById('opt_value').innerHTML = ipt_value;
}