Skip to content

Instantly share code, notes, and snippets.

@NickClark
Created September 1, 2010 15:43
Show Gist options
  • Save NickClark/560889 to your computer and use it in GitHub Desktop.
Save NickClark/560889 to your computer and use it in GitHub Desktop.
$('form').live('submit', function (e) {
var data = $(this).serializeArray();
$.ajax({
url: "http://www.example.com/",
data: data,
dataType: "script",
type: "POST",
});
e.preventDefault();
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment