Created
July 10, 2014 13:35
-
-
Save jdcauley/ced3905725aa3e18941a to your computer and use it in GitHub Desktop.
Email Sign Up with Parse
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$('#submit').click(function(){ | |
var emailAddress = $('#email').val(); | |
var NewSignUp = Parse.Object.extend("NewSignUp"); | |
var newSignUp = new NewSignUp(); | |
newSignUp.save({email: emailAddress}).then(function(success) { | |
if(success){ | |
$('#signup').addClass('done'); | |
$('#form-success').addClass('show'); | |
} else { | |
$('#signup').addClass('done'); | |
$('#form-error').addClass('show'); | |
} | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment