I have to write some code for IE8. I have an ng-repeat creating a table filled with:
<input production-qty type="text" class="input-mini" maxlength="3" ng-model="day.qtyA" ui-event="{ blur : 'updateProduction(day)' }" ng-disabled="day.type=='H'">
IE8 won't do type=number
I want a directive that will ignore key strokes on that input field that are NOT numeric keys....ie....0 - 9
I don't want to let the user type abc and pollute the model and then tell them the value is invalid. I'd rather not let them enter any data that's not valid in the first place.
See Question&Answers more detail:os