jquery binding to a form submit
<p>I'm doing the following:</p>

<pre><code>    // Post to the server
    $.ajax({
        type: 'POST',
        url: $("form.edit_item").attr("action"),
        data: $("form.edit_item").serialize(),
        success: function(e) {
        }
    });


$(".edit_item")
    .bind('ajax:loading', function() {
        alert('go');
    })
    .bind('ajax:success', function(data, status, xhr) {
        alert('going');
    })
});
</code></pre>

<p>On the form:</p>

<pre><code>&lt;form accept-charset="UTF-8" action="/xxxxx/18" class="edit_item" id="edit_item_31" method="post"&gt;&lt;div 
</code></pre>

<p>While the form posting works fine.the ajax binds are not working. Suggestions?</p>

<p>Thank you</p>
