Jquery help repeated ajax call
<p>When I submit my form, a repeated ajax call is made it never stop.</p>

<p>Here is my Jquery for the ajax call on form submit:</p>

<pre><code>$('form#formgo').submit(function(e) {
    e.preventDefault();

    $('#comparecontent').empty().html(
        '&lt;p style="text-align:center;"&gt;' +
        '&lt;img src="../images/ajax.gif" /&gt;&lt;/p&gt;');

    var form = $(this).closest('form');

    $.ajax({
        type: form.attr('method'),
        url: form.attr('action'),
        data: form.serialize(),
        success: function(msg){
            $('#comparecontent').html(msg);
        }
    });

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