Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Simple jQuery ajax request
function ajax() {
var msg = $(".register").serialize();
type: "POST",
url: "./mail.php",
data: msg,
success: function(data) {
console.log('форма отправлена');
error: function(xhr, str) {
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.