Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Custom JS
- $(document).ready(function() {
- // MDB select initialization
- // $('.mdb-select').material_select();
- // Form Validation Settings
- // Login form Settings
- $('#loginForm').formValidation({
- framework: 'bootstrap4',
- excluded: ':disabled',
- icon: {
- valid: 'fa fa-check',
- invalid: 'fa fa-times',
- validating: 'fa fa-refresh'
- },
- fields: {
- email: {
- validators: {
- notEmpty: {
- message: 'The username is required'
- },
- emailAddress: {
- message: 'The username must be more than 6 and less than 30 characters long'
- },
- }
- },
- password: {
- validators: {
- notEmpty: {
- message: 'The password is required'
- }
- }
- }
- }
- });
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement