Skip to content

Instantly share code, notes, and snippets.

@amster
Created April 5, 2011 06:22
Show Gist options
  • Save amster/903118 to your computer and use it in GitHub Desktop.
Save amster/903118 to your computer and use it in GitHub Desktop.
$('form .submit-button').click(function () { $(this).parents('form:first').submit(); });
$('form').bind('ajax:success', function () { alert('it works'); });
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment