I want to get the value of a text field when I press a key.
I have html code like
<input style="width: 20%; float: right;" ng-model="que.SelectedOptionsUID" type="text" ng-keypress="myFunct($event)"/>
And the JS code on my controller:
$scope.myFunct = function (e) { var charCode = (e.which) ? e.which : e.keyCode;
javascript angularjs
sagar43
source share