forgot-password.js 447 B

1234567891011121314
  1. $(function () {
  2. $('#forgot_password').validate({
  3. highlight: function (input) {
  4. console.log(input);
  5. $(input).parents('.form-line').addClass('error');
  6. },
  7. unhighlight: function (input) {
  8. $(input).parents('.form-line').removeClass('error');
  9. },
  10. errorPlacement: function (error, element) {
  11. $(element).parents('.input-group').append(error);
  12. }
  13. });
  14. });