jQuery include form elements submit
<p>Working from the ground up on a Joomla Component re-config.  I'm trying to incorporate an AJAX search function in my component.  So far, I have this:</p>

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

    $('form').submit(function() {
        var results = $('form').serialize();
        var url = 'index.php?option=com_mls&amp;task=ListData&amp;format=raw&amp;' + results;
        $('#test').html(url);
    });
});
</code></pre>

<p>This just need to dump the values of the the form elements into a div.  right now, it will display the text string, but not the <code>results</code> var.</p>
