Somewhere in my codes, I have the following statement to set the content of the space element to an HTML table I manually constructed.
subtableSpace.innerHTML = machineTable;
How to have the space element listen for the inner HTML change event so that every time when its inner HTML is changed, I can do something.
subtableSpace.addEventListener(‘change’, function (event) {
kintone.app.record.get();
console.log(record);
kintone.app.record.set(record);
});