How to have a Space element listen for inner html change event?

 

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);
});

Hi annaylee

It seems like you’ve solved this yourself, looking at the following post
https://developer.kintone.io/hc/en-us/community/posts/4413932254745

If you have related questions, could you post them in the same thread please. It would help the community members understand where your issues is, and it will also help future community members who look at past questions.

Thanks!