I have 3 fields in a form Price,Quantity and Total
i need to get Total based upon Price and Quantity
Total:Price * Quantity
Could you please help me
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<title></title>
</head>
<body>
<script type="text/javascript" src="//ajax.googleapis.com/ajax/libs/angularjs/1.3.9/angular.min.js"></script>
<script type="text/javascript">
var app = angular.module('MyApp', [])
app.controller('MyController', function ($scope, $window) {
$scope.Customers =[{ Price:1}];
});
</script>
<div ng-app="MyApp" ng-controller="MyController">
<table cellpadding="0" cellspacing="0">
<tr>
<th>Price</th>
<th>Quantity</th>
<th>Total</th>
</tr>
<tbody ng-repeat="m in Customers">
<tr>
<td><input type="text" ng-model="m.Price" /></td>
<td><input type="text" ng-model="m.Quantity" /></td>
<td><input type="text" ng-model="m.Total" /></td>
</tr>
</tbody>
</table>
</div>
</body>
</html>