cara memicu acara input di javascript

var event = new Event('input', {
    bubbles: true,
    cancelable: true,
});

element.dispatchEvent(event);
Better Bug