I have a button that when clicked sets the text in an input text field.
The input text field has an onchange event that fires when someone puts in text, however, I don’t want this onchange event to fire when its value is injected from clicking the button described above.
Is this possible?
Note that this is not related to event bubbling/propagation of the click event on the button
You could change the event on the text field to a .blur() or .keyup(), which would only detect if the text field loses focus or the user inputs text manually (respectively).