I'm using 'contenteditable=true' to enable edits on certain table cells. Now I want to know which of the editable elements on the page have actually been edited by the user, so that I can process the changes.
Although I could probably use event-listeners for this purpose, this approach will be tedious in my case. The page is dynamically generated and it has a variable number of editable elements. I want to avoid having to dynamically add event-listeners for every editable element.
I want to know if the DOM already has a property/flag to indicate whether an element has been updated. If so, I'd like to have a solution along these lines:
var element_123 = document.getElementById("element_id_123");
var was_edited = element_123.was_edited;
Thank you.