Once typing starts, check input box every 3 seconds until the user stops typing - how?
<p>Here is my attempt in jquery that kind of works but something is going wrong which i cannot work out. For example, if I type 'ff', and then add another two 'ff's afterwards too many console logs occur - difficult to explain, but if you run the code and experiment, too many console.logs are getting called.</p>

<pre><code>$("#search-input").keyup(function () {
        var thisVal = $(this).val();
        if(thisVal!=''){
            function checker (v){
                if($("#search-input").val() !=v){
                    setTimeout(function(){checker($("#search-input").val() )}, 3000);
                }
                else{
                    console.log($("#search-input").val());
                }
            }
            setTimeout(function(){checker(thisVal)}, 3000);

        }
    });
</code></pre>

<p>search-input is just the input box. I actually plan to make an ajax call instead of console.logging but if I can get the above working that will put me well on the way.</p>
