Línea 66... |
Línea 66... |
66 |
errorElement: 'span',
|
66 |
errorElement: 'span',
|
67 |
errorClass: 'error invalid-feedback',
|
67 |
errorClass: 'error invalid-feedback',
|
68 |
errorPlacement: function(error, element) {
|
68 |
errorPlacement: function(error, element) {
|
69 |
const child = element.children(':first-child');
|
69 |
const child = element.children(':first-child');
|
70 |
console.log('>>: is name > ', element.attr('id', 'name'));
|
70 |
console.log('>>: is name > ', element.attr('id', 'name'));
|
71 |
console.log('>>: element > ', element[0])
|
71 |
console.log('>>: element > ', element[0].localName)
|
72 |
console.log('>>: field > validator > 1', element, element.parent(), child);
|
72 |
console.log('>>: field > validator > 1', element, element.parent(), child);
|
73 |
// if(element.parent('input.form-group'))
|
73 |
// if(element.parent('input.form-group'))
|
74 |
if(element.parent('.form-group').length) {
|
74 |
if(element.parent('.form-group').length) {
|
75 |
console.log('>>: field > validator > is form group', element, element.parent());
|
75 |
console.log('>>: field > validator > is form group', element, element.parent());
|
76 |
error.insertAfter(element);
|
76 |
error.insertAfter(element);
|