Skip to content
Advertisement

Just-validate form validation library, just fails to submit the form aftervalidtion

This is the just-validate library codes to validate my form, but it fails to submit the form after validation, it should submit after validating all the fields. I have tried to run these code but it does not run. These are the codes i’ve used. all field are verified. But it fails to submit the form

JavaScript

Advertisement

Answer

The id of your form is “appform”:

JavaScript

but your JavaScript code is trying to get the element with an id of “app-form”, which is a totally different id:

JavaScript

try changing them to match, e.g.

JavaScript
Advertisement