Skip to content

Instantly share code, notes, and snippets.

@kesarawimal

kesarawimal/jquery.js

Last active Feb 15, 2021
Embed
What would you like to do?
FormSubmit AJAX Documentation: jQuery
// https://api.jquery.com/jQuery.ajax
$.ajax({
method: 'POST',
url: 'https://formsubmit.co/ajax/your@email.com',
dataType: 'json',
accepts: 'application/json',
data: {
name: "FormSubmit",
message: "I'm from Devro LABS"
},
success: (data) => console.log(data),
error: (err) => console.log(err)
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment