Línea 68... |
Línea 68... |
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].localName)
|
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[0].localName == 'input'){
|
- |
|
74 |
error.insertBefore(element);
|
- |
|
75 |
}
|
74 |
if(element.parent('.form-group').length) {
|
76 |
else if(element.parent('.form-group').length) {
|
75 |
console.log('>>: field > validator > is form group', element, element.parent());
|
77 |
console.log('>>: field > validator > is form group', element, element.parent());
|
76 |
error.insertAfter(element);
|
78 |
error.insertAfter(element);
|
77 |
} else if(element.parent('.toggle').length) {
|
79 |
} else if(element.parent('.toggle').length) {
|
78 |
error.insertAfter(element.parent().parent());
|
80 |
error.insertAfter(element.parent().parent());
|
79 |
} else {
|
81 |
} else {
|