I have the following code:
var things = document.querySelectorAll("input.thing_input");
things.forEach(thing => {
console.log(thing.name);
if (thing.value == 0) {
thing.value = "3";
}
}
It was supposed to change the input field as if it was an actual input change, but it only changes it visually (it does not change in the HTML and cannot be saved properly because of that).