0
I have a field :
<input type="text" name="DataNascimento" class="form-control data"
ng-model="EscolherCurso.DataNascimento" required ui-date-mask/>
which I preferred to use jquery datepicker. But when jQuery fills the value, the angular does not perform the validation again.
I tried to use the datepicker event :
onSelect: function (dateText) {
$(this).val(dateText);
if ($(this).valid()) {
$(this).removeClass('invalid').addClass('success');
}
}
but did not fire.
Forehead shoot
.trigger('input');
in that element– Sergio
It didn’t work for me, I tried Rigger('input'), Rigger('change'), triggerHandler('change') ... and nothing
– Alan Oliveira
You tested
$('[name="DataNascimento"]').trigger('input');
within thatonSelect
and it didn’t work?– Sergio