SerovMihail
8/12/2018 - 11:43 AM

Trigger Input by Native JS

var ev = new Event("input", { bubbles: true });
ev.simulated = true;
debugger;
document.activeElement.value = data;
document.activeElement.dispatchEvent(ev);
document.activeElement.style.border = "2px solid red";