How to fire the change event for an input field?
I have added some input to an input field element this way:
const inputFiled = document.querySelector("#example"); inputField.value = "X";
I want to fire a change event for that field right after the input was added.
This is something I want to try after noticing that the input isn't recognized (the form won't be submitted) if added in the above way; rather, it is recognized only by typing/pasting.
How to do that?