Skip to content

Instantly share code, notes, and snippets.

@Ajmal001
Forked from AsthaSharma1/FormData
Created September 22, 2020 18:46
Show Gist options
  • Save Ajmal001/ddd08bbc92daede492fb60db49c4671d to your computer and use it in GitHub Desktop.
Save Ajmal001/ddd08bbc92daede492fb60db49c4671d 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