Jak wyzwolić zdarzenie wejściowe w JavaScript
var event = new Event('input', {
bubbles: true,
cancelable: true,
});
element.dispatchEvent(event);
Better Bug
var event = new Event('input', {
bubbles: true,
cancelable: true,
});
element.dispatchEvent(event);