The problem: The event is triggered when I type in the textfield, but not if I press the button. Is there a way to achieve this with some kind of event or otherwise without having to do it manually?

What I don't want to do: I could go through all my code to add a

trigger

or function call everywhere manually, but that's not what I'm looking for.

The reason: The main reason I would like to do this automatically is that I have a lot of input fields and a lot of different places where I change these inputs programmatically. It would save me a lot of time if there was a way to fire the event automatically when I change any input anywhere in my code. Besides saving time, I am just interested in the solutions people might come up with.