There's a third-party js-code, which changes my inputs values like this:
some_third_party_func = function() {
my_input.value = some_val;
};
I want to track all the changes of my_input.value
somehow. Modifying a third-party js is the thing I want to avoid. Probably, events can be useful, but which one? The oninput
event looks acceptable, except for handling only keyboard input because of some mysterious reasons.
my_input.oninput = function() { alert("my_input.oninput"); };
// ^^ alert() runs only when inputting from the keyboard
Here you can try the issue (how it looks for me).
Is there any method to do this (with jQuery, maybe)?