Created
August 27, 2010 23:27
-
-
Save shadowhand/554371 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$(document).ready(function() { | |
$('form').live('submit', function() | |
{ | |
var form = $(this); | |
var action = form.attr('action'); | |
$.post(action, form.serialize(), function(response) | |
{ | |
form.replaceWith(response); | |
}); | |
return false; | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment