I have an input text that I need detect when the text (value) change. The value can be changed in two ways:
- Allow to the user write in it.
- The user click a button, runs a jQuery event and fill it with the result.
For the item 1 I solved using keyup
but for the item 2 I have no idea how can I detect when the text is changed.
I try change()
but does not work.
$("#id").trigger("keyup");
– Archer May 29 '13 at 14:03