Sean O wrote: > $("input").keyup(function(){ > var self = this; > var upd = setTimeout( function() { > updateField( $(self) ); // function outside $ scope to > update field > contents in dB > },6000); > }); >
The "upd" var will only be available in your function - nothing outside can see it. You need to define the var "upd" outside that function... var upd; $(..).keyup(function(){ ... upd = setTimeout (.... });