victorjonsson / jQuery-Form-Validator

[DISCONTINUED] jQuery plugin that makes it easy to validate user input while keeping your HTML markup clean from javascript code.
973 stars 477 forks source link

Unable to submit form what's wrong? #719

Closed Shaz3e closed 5 years ago

Shaz3e commented 5 years ago

Hello,

When I click submit button the form is not submitting the data, here is my code please check and let me know if I am doing something wrong.

I am calling formvalidator script in head and custom script in footer

<script type="text/javascript" src="js/jquery.min.js"></script>
<script type="text/javascript" src="js/bootstrap.bundle.min.js"></script>
<script type="text/javascript" src="js/fontawecome.js"></script>
<script type="text/javascript" src="js/jquery.form-validator.min.js"></script>

HTML

Custom JS Calling it in footer in scripts.js file

$.validate({
    form : '#registrationForm',
    modules : 'security, html5',
    onModulesLoaded : function() {
        var optionalConfig = {
            fontSize: '12pt',
            padding: '4px',
            bad : 'Very bad',
            weak : 'Weak',
            good : 'Good',
            strong : 'Strong'
        };
    $('#password').displayPasswordStrength(optionalConfig);
    }
});
lalaithan commented 5 years ago

Have you tried the method described in the second paragraph here? I don't see how your form data is being collected or where it's supposed to go when submitting.

Shaz3e commented 5 years ago

I quit