jq-idealforms
jq-idealforms copied to clipboard
action="mail.php" method="post"
Action method post is just not working Any help in this regards would be appreciated.
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!');
}
You need to remove this line - it prevents the page from reloading after the fields have been validated using jquery:
e.preventDefault();