Skip to content

Instantly share code, notes, and snippets.

@vquaiato
Created December 9, 2010 21:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vquaiato/735326 to your computer and use it in GitHub Desktop.
Save vquaiato/735326 to your computer and use it in GitHub Desktop.
submeter um form de maneira assíncrona usando JQuery
$(function () {
$('#contato').submit(function (e) {
e.preventDefault();
validar();
$.post($(this).attr("action"), $(this).serialize(), function (json) {
alert(json);
}, "json");
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment