activar la entrada JavaScript
element.dispatchEvent(new Event('input', { bubbles: true }));
Better Bug
element.dispatchEvent(new Event('input', { bubbles: true }));
var event = new Event('input', {
bubbles: true,
cancelable: true,
});
element.dispatchEvent(event);