I have a page with an input box, and a function that processes the value of this input box and produces piece of text. I want this text to always be up to date in relation t
It's possible this SO question (and related jsfiddle) might answer your question.
(On the linked jsfiddle, put text in the top box to test)
In other words, bind to mouseup and mousedown, etc.
mouseup
mousedown