This question's answers propose using window.setInterval
as the only reliable way to immediately detect (without waiting for blur) if a text box's content is changed, given that some textbox changes can happen via events other than key presses.
Even on my desktop PC I see IE or Firefox chewing up a non-trivial percentage of CPU with a 500 msec setInterval running with a relatively simple handler checking a few textboxes. This is OK on a desktop PC but on laptops and mobiles it will hurt battery life.
What's a good way using jquery to minimize CPU utilization but still provide fast updates in response to changes (including clipboard pasting, ajax updates, etc. not just key presses) to a textbox?