Created
July 8, 2022 05:06
-
-
Save asharma327/5f06a21c46bd49078b30b4f71fd06b53 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
<script> | |
function SubForm (){ | |
$.ajax({ | |
url:'https://api.apispreadsheets.com/data/jMGwn06FaKODhaKy/', | |
type:'post', | |
headers:{ | |
accessKey: "3f7608848c6cb3c4fbf02649c59b7ba5", | |
secretKey: "255bb6cfdfca9f0cac3c7df9ebc74b3c" | |
}, | |
data:$("#myForm").serializeArray(), | |
success: function(){ | |
alert("Form Data Submitted :)") | |
}, | |
error: function(e){ | |
alert("There was an error :(") | |
} | |
}); | |
} | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment