I have a input text box (lets call it inputText1), the value of which links to a query and table. Each time the input changes, the query fires and the table contents update - simples enough.
I also have a set of components on the same page, in a container. There are a number of input fields and switches, which I would like to reset to their default state when inputText1 changes (so as not to "remember" the settings between each change).
I know I can achieve this by adding a bunch of "on change" events to inputText1, but that feels overkill.
Instead, is there a quick way to reset a collection of components in one go, in a more dynamic way (i.e. say I add another component, I don't need to remember to add it to a script or change event to reset it).
I guess what I would be looking for is something like a reset event on a container, and when that is triggered it would reset all objects within.
Maybe I've just engineered it sub-optimally and a container isn't the way to go?
Any ideas welcome! Your time is appreciated.