Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <input
- type="text"
- name="folioId"
- ng-keypress="keypressOnFolioNumber($event)"
- ng-model="loginCredentials.folioId"
- required/>
- $scope.keypressOnFolioNumber = function ($event){
- //console.info($event);
- if ($event.charCode < 48 || $event.charCode > 57) {
- $event.stopImmediatePropagation();
- $event.preventDefault();
- $event.stopPropagation();
- return false;
- }
- }
Add Comment
Please, Sign In to add comment