Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <input production-qty type="text" class="input-mini" maxlength="3" ng-model="day.qtyA" ui-event="{ blur : 'updateProduction(day)' }" ng-disabled="day.type=='H'">
- <input production-qty type="text" maxlength="3" ng-model="qty1">
- .directive('numeric', function() {
- return function(scope, element, attrs) {
- $(element[0]).numericInput({ allowFloat: true });
- };
- })
- <input type="text" numeric />
- $scope.blockNonNumber = function (val, field){
- $scope[field] = val.toString().replace(/[^0-9]/g, '');
- }
- <input type="text" ng-model="price" ng-change="blockNonNumber(price, 'price')" pattern="[0-99]">
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement