Avoid dummy text on an AJAX search (jQuery)
<p>I'm using this code for an AJAX-based search in the event "the user stops writing". Now I want to detect when the user is writing  a fast succesion of characters with no sense, something like type 'edkpakdpakffnhnsc' dummy string.</p>

<pre><code>$(document).ready(function() {

        var inputTimer;
        var lol = $('input#lol');
        var hola = $('#hola');

        hola.hide();

        $('#lol').keyup( function(){


            if(lol.val().length &gt;= 3){

                clearTimeout(inputTimer);
                inputTimer = setTimeout(ajaxFunction, 500);

                function ajaxFunction(){
                    hola.show();
                }

            } else {
                hola.hide();
            }
            });

    });
</code></pre>

<p>How I have to approach this problem???</p>

<p>Thanks</p>
