enable submit event on live bindings in jQuery
Toni UebernickelThe live() method is one great new feature of jQuery 1.3, however it does not support binding of the event ‘submit’ of forms.
$('form').live('submit', function() {
// your callback
});
This can be simulated by a simple workaround on the selected objects. The click() event can be bound using the live() method. The workaround is simple: do not bind the submit of a form, but the click on any submit button within it.
$('input:submit', $('form')).live('click', function() {
// your callback
});