> don’t act as a data modifier before actual submission.
Well that’s a bummer.
the docs give an example:
Examples:
$('input[value="checkbox_1"]').prop('checked', true).change();
$('input[name="firstname"]').val('Brian').change();
If not using jQuery:
input.value = value;
input.dispatchEvent(new Event('input', { bubbles: true }));
For Checkboxes:
input.click()
What’s the point of that then? Does it only allow me to update values while the form is rendered?