I have two textboxes : input 1 is a text box and output is a textbox, whereas input 2 is not a textbox, since it is a fixed quantity
For Eg :
If the input 2 has a fixed value of 510, the output textbox value must vary according to the input 1 textbox value.
1 * 510 = 510
2 * 510 = 1020
I'm not getting it right, check my code.
$scope.calc = function () {
$scope.mul = parseFloat($scope.num) * parseFloat($scope.nums);
}
<div class="col-md-2 pull-left airways-info-sect">
<span class="fli-code">No Of Pallets</span>
<span class="airways-name ">
<input type="number" class="" placeholder="" ng-model="num" ng-init="num=0" ng-change="calc()" required="" style="border:1px solid #333; width:20%" /><i class="mr-3 fa fa-plus-square-o" style="font-size:22px; padding-left:5px; position:absolute;"></i>
</span>
</div>
<div class="col-md-1 pull-left airways-info-sect">
<span class="fli-code">Accept Qty</span>
<span class="airways-name" ng-model="nums">{{item.Numbers}}</span>
</div>
<div class="col-md-1 pull-left airways-info-sect">
<span class="fli-code">Issue Qty</span>
<input type="number" class="" placeholder="" ng-model="mul" ng-init="mul=0" required="" style="border:1px solid #333; width:70%" />
</div>