Forked from anonymous/gist:96a45fd87696b9bd7f042a8b689b2e47
Last active
June 2, 2016 14:44
-
-
Save robins35/52c52ddcfd96d327898513e223ab6ed0 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
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