Skip to content

Instantly share code, notes, and snippets.

@AsthaSharma1
Created June 25, 2020 08:34
Show Gist options
  • Save AsthaSharma1/7ab52f14e93211aff3b720fad5fdfe5e to your computer and use it in GitHub Desktop.
Save AsthaSharma1/7ab52f14e93211aff3b720fad5fdfe5e to your computer and use it in GitHub Desktop.
<script>
function SubForm (){
$.ajax({
url:'https://api.apispreadsheets.com/data/410/',
type:'post',
data:$("#myForm").serializeArray(),
success: function(){
alert("Form Data Submitted :)")
},
error: function(){
alert("There was an error :(")
}
});
}
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment