Skip to content

Instantly share code, notes, and snippets.

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 robins35/52c52ddcfd96d327898513e223ab6ed0 to your computer and use it in GitHub Desktop.
Save robins35/52c52ddcfd96d327898513e223ab6ed0 to your computer and use it in GitHub Desktop.
function createBlogPos() {
$.ajax({ type: "POST",
url: "/blog/editPage.php",
data: {id : "saveBut", formTitle : $("#editFormTitle").val(), formText : $("#editFormText").val() },
success: function(data) {alert(data)},
error: function(data) {}
});
}
$("#editFormSaveBut").on('click', function(e){
createBlogPost();
second_function();
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment