The on input event in my example should do just that.