jq-idealforms icon indicating copy to clipboard operation
jq-idealforms copied to clipboard

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

Open Shaz3e opened this issue 9 years ago • 2 comments

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

Shaz3e avatar Oct 04 '15 12:10 Shaz3e

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!');
      }

Shaz3e avatar Oct 05 '15 13:10 Shaz3e

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

e.preventDefault();

baroche avatar May 20 '16 14:05 baroche