jqBootstrapValidation plugin is not working for my form

Viewed 4307

This is my first time using this plugin. I am using jQuery v-1.10. I am also using the migrate plugin. I have added the js file. I have added all of these using prepros. But still the plugin is not working.

No error is also showing in the console; only a warning is showing saying:

event.returnValue is deprecated. Please use the standard event.preventDefault() instead.

My form and the JS code is given below.

<form id="login-form" method="post" action="#" novalidate>
    <label for="login-email" class="control-label">Email : </label>
    <input id="login-email" class="form-control" name="email" type="email" placeholder="Email..." required><br>
    <label for="login-password" class="control-label">Password : </label>
    <input id="login-password" class="form-control" name="password" type="password" placeholder="Password..." required><br>
    <input class="btn btn-default" name="submit" type="submit" value="Submit">
</form>

$("#login-form input").not("[type=submit]").jqBootstrapValidation();
1 Answers
Related