Skip to content

Instantly share code, notes, and snippets.

@jdcauley
Created July 10, 2014 13:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jdcauley/ced3905725aa3e18941a to your computer and use it in GitHub Desktop.
Save jdcauley/ced3905725aa3e18941a to your computer and use it in GitHub Desktop.
Email Sign Up with Parse
$('#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