Skip to content

Instantly share code, notes, and snippets.

@dizpers
Last active December 14, 2015 19:19
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 dizpers/5135981 to your computer and use it in GitHub Desktop.
Save dizpers/5135981 to your computer and use it in GitHub Desktop.
$("#modalOk").click(function(){
$.post('/help/', $('.modal-body form').serialize(), function(resp){
if (resp.error) {
alert("Fix errors and try again!")
}else{
$("#modalOk").remove();
$(".modal-body").html(resp.message);
}
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment