Answers for "check textbox value on ng-change value == in angular"

0

check textbox value on ng-change value == in angular

<script>
  angular.module('changeExample', [])
    .controller('ExampleController', ['$scope', function($scope) {
      $scope.evaluateChange = function(obj,$event) {
        var currentElement = $event.target;
        console.log(currentElement.value);//this will give you value of current element
      };
    }]);
</script>

<div ng-controller="ExampleController">
  <textarea ng-change="evaluateChange(this)" id="ng-change-example1"></textarea>
</div>
Posted by: Guest on December-07-2020

Code answers related to "check textbox value on ng-change value == in angular"

Code answers related to "Javascript"

Browse Popular Code Answers by Language