jose jose - 1 year ago 158
jQuery Question

ng-change not trigger in IE 11 in angularjs

hi all i am using

working with
functionality input type date is not working in IE so i am using
to get date picker it's working fine but i am not able to trigger the
event in IE here i attached my fiddle help how to solve this anyone help

NOTE:Check fiddle in IE 11


Answer Source

Internet Explorer 11 does not currently support <input type='date'> as you already trying to find a work around. You may use datepicker onSelect and update your model. You can fire change function manually. So that you can collect both changes from HTML5 Date supported browsers and others.

You can find the fiddle here

function LoginController($scope) {
    $scope.changeDetected = function() {

    if ($('#test')[0].type != 'date') $('#test')
            onSelect: function(date) {
                $ = date;
<script src=""></script>
<script src=""></script>

<div ng-app ng-controller="LoginController">
	<input type="date" id="test" ng-model="date" ng-change="changeDetected()"/>

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download