Hi,
I am Posting My data on controller using Angularjs Now i want to Validate on Some Fields Can Some One Help me How can i do that.
Angularjs
- $scope.savedata = function () {
- $scope.btn = true;
- $http({
- method: 'POST',
- url: '@Url.Action("LRData","GRPO")',
- data: { 'Docentry': $scope.grpo, 'batch': $scope.b }
- }).success(function (data) {
- alert(data);
- });
- }
-
class="table table-bordered table-hover">
- class="thead-dark">
Item Code Description Quantity Batch No LR No LR Date "t in b"> class="bg-color">{{t.ItemCode}} class="bg-color">{{t.Description}} class="bg-color">{{t.Qty}} class="bg-color">{{t.Batch}} "text" ng-model="t.LrN" class="form-control" /> "date" ng-model="t.LrD" class="form-control" /> - class="thead-dark">
- "button" value="Save" class="btn btn-outline-primary" ng-click="savedata()" ng-disabled="btn" />

Manav PandyaPosted Feb 18, 2018, 10:22 PM