trigger input for element js code example
Example 1: trigger input javascript
element.dispatchEvent(new Event('input', { bubbles: true }));
Example 2: trigger input javascript
var event = new Event('input', {
bubbles: true,
cancelable: true,
});
element.dispatchEvent(event);