TIL: form controls have a defaultValue property (and defaultChecked) you can access to retrieve the original value.
Sample use case: checking if any of the values were altered during inline editing.
developer.mozilla.org/en-US/docs/W...
developer.mozilla.org
HTMLInputElement: defaultValue property - Web APIs | MDN
The defaultValue property of the HTMLInputElement interface indicates the original (or default) value of the <input> element. It reflects the element's value attribute.