Is there a way to trigger the onchange event on a span element that doesn't seem to be working? Here is the code I am using:
Attempt 1
document.getElementById(seconds).addEventListener('change', (event: MutationEvent & { path: any }) => {
console.log('span has changed');
});
Attempt 2
document.getElementById(seconds).onchange((event) => {
console.log('span has changed');
});