I'm trying to call a function when my input value gets updated. The function will validate the input value and set a flag to true or false which will be used in multiple elements in the DOM.
I have been trying the proposed solution here:
<input data-bind="event: { change: value_changed }, value: saved_value, valueUpdate: 'afterkeydown'" />
But it doesn't seem to work on afterKeyDown. It only calls the function on unfocus as you can see here: http://jsfiddle.net/imac/hY5T2/142/
What am I doing wrong?