-
Notifications
You must be signed in to change notification settings - Fork 119
How do I simply continue to PHP processing #65
Copy link
Copy link
Open
Description
Please I have some PHP code that checks the form on the back end. I would simply like ideal forms to check the client side and then allow PHP processing. The code below checks for invalid data but when all fields are valid, nothing happens when I click the submit button. Question is. What do I put in the else { } condition to make it continue to PHP processing. My PHP code works perfectly without the idealforms check, but it would be nice to have the jquery checks on the front end. Please help - I don't know any Jquery.
$("form").idealforms({
onSubmit: function(e, t) {
t.preventDefault();
if (e) {
var n = $("form").children(".invalid").offset().top;
$("html, body").animate({
scrollTop: n - 200
}, 1e3)
} else { }
}
})
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels