Jquery: If form is blank load this query
<p>I've got some JQuery which monitors a form.  Basically, for every keyup it will call a php file to search the database.</p>

<pre><code>$(document).ready(function() {
    $("#faq_search_input").watermark("Begin Typing to Search");

    $("#faq_search_input").keyup(function() {
        var faq_search_input = $(this).val();
        var dataString = 'keyword='+ faq_search_input;

        if (faq_search_input.length &gt; 2) {
            $.ajax({
                type: "GET",
                url: "core/functions/searchdata.php",
                data: dataString,
                beforeSend: function() {
                    $('input#faq_search_input').addClass('loading');
                },
                success: function(server_response) {
                    $('#searchresultdata').empty();
                    $('#searchresultdata').append(server_response);
                    $('span#faq_category_title').html(faq_search_input);
                }
            });
        }

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

<p>This works fine, however it filters the results in <code>#searchresultdata</code> depending on the query. The only thing is, if nothing is in the form, I want it to load everything - the user should not have to click the form to do this, therefore a <code>.blur</code> would not work.</p>

<p>The PHP file is simply:</p>

<pre><code>if(isset($_GET['keyword'])){}
</code></pre>
