Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why is validationEngine() not working?

I am trying to make this contact form work with validation engine.

I am not able to understand why validation is not fired when pressing the Submit button. I have already spent over one hour doing debugging and so on.

You can notice that my form's input elements have class="validate[required]" and I also bound the form to validation engine:

<script type="text/javascript">
    $(document).ready(function(){
        // binds form submission and fields to the validation engine
        $("#registerForm").validationEngine();
    });
</script>

Do you see anything that I am doing wrong? A demo working page for this jQuery plugin is here.

like image 496
Cristian Boariu Avatar asked Nov 05 '22 05:11

Cristian Boariu


1 Answers

Its mandatory to use an ID attribute for the input tags. So write an ID attribute to the input tag that you need to provide validation using validation engine plugin.

like image 72
Jebin Avatar answered Nov 08 '22 00:11

Jebin