Given an input element, I know we can use this to capture input changes,
$("input").on("change", function() { ... });
So that, when users type text in the input box, the above function will be triggered.
However, my use-case is that, the input is being updated by a button click, not by user typing text directly. And seems cannot use the above code to capture the input changes event.
Any other approaches?
clickevent is triggered via the button.. you want the current input captured?inputbox will change.