Код: Выделить всё
// 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');
})
});
Код: Выделить всё
Подробнее здесь: [url]https://stackoverflow.com/questions/4294221/jquery-binding-to-a-form-submit[/url]