Created
March 10, 2018 03:59
-
-
Save dineshpithiya/b7218345037a5118320807a01bbe15f4 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
var form = $(this.submitButton).parents("form") | |
var formdata = false; | |
if(window.FormData) | |
{ | |
formdata = new FormData(form[0]); | |
} | |
var formAction = form.attr('action'); | |
submit_form(formAction,formdata,form,function(result) | |
{ | |
console.log(result); | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment