Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

action="mail.php" method="post" #61

Open
Shaz3e opened this issue Oct 4, 2015 · 2 comments
Open

action="mail.php" method="post" #61

Shaz3e opened this issue Oct 4, 2015 · 2 comments

Comments

@Shaz3e
Copy link

Shaz3e commented Oct 4, 2015

Action method post is just not working Any help in this regards would be appreciated.

@Shaz3e
Copy link
Author

Shaz3e commented Oct 5, 2015

below function validate the fields if validation is successful so it just shows the message _"All good!"_ but I want to send an email when all is good...

      onSubmit: function(invalid, e) {
        e.preventDefault();
        $('#invalid')
          .show()
          .toggleClass('valid', ! invalid)
          .text(invalid ? (invalid +' invalid fields') : 'All good!');
      }

@baroche
Copy link

baroche commented May 20, 2016

You need to remove this line - it prevents the page from reloading after the fields have been validated using jquery:

e.preventDefault();

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants