JSFiddle - React, Tailwind, and code Playground

HTML

Введите что-нибудь:<br />
<input type="text" value="ololo!" id="ololo" />

JavaScript

document.getElementById("ololo").onchange = function () {
    alert("`value` attribute = " + this.getAttribute("value") + "\n" +
     "`value` property = " + this.value);
};