Try it
Javascript
Jquery
Angular
Learn Angular
Learn Javascript
Learn Bootstrap
Learn jQuery
Ng-Keydown-2
Ng-keydown
will increase the count by 1 when everytime we will press the key in textbox.
<!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>Welcome to LearnKode - A code learning platform</title> <script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.4.2/angular.min.js"></script> </head> <body ng-app> <div> Text: <input type="text" ng-model="text" ng-keydown="count=count+1" /><br /> KeyDown Count: {{count}} </div> </body> </html>
Output
×
Save This try
Title
Description
<p><code>Ng-keydown</code> will increase the count by 1 when everytime we will press the key in textbox.</p>