Проверка формы регистрации не работает - PullRequest
0 голосов
/ 05 декабря 2018

Форма регистрации не подтверждена сценарием.Вот форма ввода Имя Электронная почта и Пароль. Это просто отправка страницы без проверки. Мне нужна помощь, чтобы проверить форму ниже, форма просто отправка с проверкой.Я не вижу сообщений об ошибках в консоли.

   `<form id="reg_form" class="form" role="form" autocomplete="off">
<div class="form-group">
    <label for="inputName">Name</label>
    <input type="text" class="form-control" id="inputName" placeholder="Full name">
</div>
<div class="form-group">
    <label for="inputEmail3">Email</label>
    <input type="email" class="form-control" id="inputEmail3" placeholder="Email" required="">
</div>
<div class="form-group">
    <label for="inputPassword3">Password</label>
    <input type="password" class="form-control" id="inputPassword3" placeholder="Password" required="">
</div>
<div class="form-group">
    <label for="inputVerify3">Verify</label>
    <input type="password" class="form-control" id="inputVerify3" placeholder="Password (again)" required="">
</div>
<div class="form-group">
    <button type="submit" class="btn btn-success btn-lg float-right">Register</button>
</div>
</form>`

      http://cdnjs.cloudflare.com/ajax/libs/bootstrap-validator/0.4.5/js/bootstrapvalidator.min.js

   `$(document).ready(function() {
    $("#reg_form").bootstrapValidator({
    fields: {
        inputName: {
            validators: {
                    stringLength: {
                    min: 2,
                },
                    notEmpty: {
                    message: 'Please enter your first name'
                }
            }
        },
         inputEmail3: {
            validators: {
                notEmpty: {
                    message: 'Please supply your email address'
                },
                emailAddress: {
                    message: 'Please supply a valid email address'
                }
            }
        },
        inputPassword3: {
            validators: {
                identical: {
                    field: 'inputVerify3',
                    message: 'Confirm your password below - type same password please'
                }   
            }
        },
    }
    });
  });`
...