Skip to content

Instantly share code, notes, and snippets.

@asharma327
Created July 8, 2022 05:06
Show Gist options
  • Save asharma327/c8daee8b8846a10fa9e464238a1f4348 to your computer and use it in GitHub Desktop.
Save asharma327/c8daee8b8846a10fa9e464238a1f4348 to your computer and use it in GitHub Desktop.
<script>
function SubForm (){
$.ajax({
url:'https://api.apispreadsheets.com/data/jMGwn06FaKODhaKy/',
type:'post',
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