livequery with keyup event causing multiple calls...

livequery with keyup event causing multiple calls...

Anyone got an idea on how to solve this problem.

I have an input text box for users to type in numbers.  When the user is finished typing a number after 700 milliseconds the typeWatch plugin should fire the "calculate_income" function.  It does this just fine, however it is calling the calculate_income function over and over the more I type and only should call it once.  For example, if I type in 1000 (which is 4 keyup events, the function gets called sometimes 3 and 4 times, then if I type in 10004 (5 keyup events) the calls to calculate_income grow exponentially.  I've been working on this all day and it appears that the "keyup" event is remembering how many times a keyup has been fired, then calls the calculate_income function that many times, or something like that.  If I refresh the browser and start over again, the first time I type in the box it calls the function 2 and sometimes 3 times, then when I type some more numbers in it starts the exponential calls all over again.

Here's the code: 

$(income_txt').live('keyup', function() {
     $(this).typeWatch({ highlight: true, wait: 700, captureLength: -1, callback: calculate_income });                                 
 });

If I don't use .live() then it works fine and only calls the function once, but because I add elements to the DOM dynamically I had to use .live() for the new input boxes to have a keyup event that uses the typeWatch plugin.

Any ideas or work arounds?  Thanks.