AngularJS - jQuery UI datepicker with alternative input not firing ng-model -


i'm using jquery ui datepicker, alternative input.

so, when selecting date calendar, inputs value set jquery.

the value being updated in input, ng-model not updating.

<input type="text" name="date"  ng-model="user.date" /> 

try

.trigger('input');

ngmodel listens input event, make work have fire event .

$('input[name="date"]').trigger('input'); 

Comments

Popular posts from this blog

apache - Remove .php and add trailing slash in url using htaccess not loading css -

javascript - jQuery show full size image on click -