const input = document.querySelector('input');
input.value = 'Hello';
const event = new Event('input', { bubbles: true });
input.dispatchEvent(event);WebDEV #test #Frontend
Выберите правильный вариант 👇🏼
WE WebDEV @webb_dev · 8.3K subscribers const input = document.querySelector('input');
input.value = 'Hello';
const event = new Event('input', { bubbles: true });
input.dispatchEvent(event);