ASPForums.Net RSS Feedhttp://www.aspforums.net/Handlers/RSS.ashxLatest additions to the content that appears on ASPForums.Net(c) 2019 www.aspforums.com. All rights reserved.Submit data when All TextBox in Table Row has value in AngularJS<p>Hi&nbsp;skp,</p> <p>Check this example. Now please take its reference and correct your code.</p> <p><strong><span style="text-decoration: underline;">HTML</span></strong></p> <div class="demo_block"> <pre class="brush: html">&lt;html xmlns=&#34;http://www.w3.org/1999/xhtml&#34;&gt; &lt;head&gt; &lt;title&gt;&lt;/title&gt; &lt;script type=&#34;text/javascript&#34; src=&#34;https://cdnjs.cloudflare.com/ajax/libs/angular.js/1.7.8/angular.min.js&#34;&gt;&lt;/script&gt; &lt;script type=&#34;text/javascript&#34;&gt; var app = angular.module(&#34;MyApp&#34;, []); app.controller(&#34;MyController&#34;, function ($scope, $window) { $scope.Items = [ { Id: 1, Name: &#34;Chai&#34;, Quantity: 0 }, { Id: 2, Name: &#34;Chang&#34;, Quantity: 0 } ]; $scope.Submit = function () { var isValid = true; for (var i = 0; i &lt; $scope.Items.length; i++) { if ($scope.Items[i].Quantity &lt;= 0) { isValid = false; break; } } if (isValid) { // Call $http post method. $window.alert(&#34;Valid&#34;); } else { $window.alert(&#34;InValid&#34;); } } }); &lt;/script&gt; &lt;/head&gt; &lt;body ng-app=&#34;MyApp&#34; ng-controller=&#34;MyController&#34;&gt; &lt;table border=&#34;1&#34; cellpadding=&#34;1&#34; cellspacing=&#34;1&#34;&gt; &lt;tr&gt; &lt;td&gt;Id&lt;/td&gt; &lt;td&gt;Name&lt;/td&gt; &lt;td&gt;Quantity&lt;/td&gt; &lt;/tr&gt; &lt;tr ng-repeat=&#34;item in Items&#34;&gt; &lt;td&gt;{{item.Id}}&lt;/td&gt; &lt;td&gt;{{item.Name}}&lt;/td&gt; &lt;td&gt;&lt;input type=&#34;number&#34; ng-model=&#34;item.Quantity&#34; /&gt;&lt;/td&gt; &lt;/tr&gt; &lt;/table&gt;&lt;br /&gt;&lt;br /&gt; &lt;input type=&#34;button&#34; value=&#34;Save&#34; ng-click=&#34;Submit()&#34;&gt; &lt;/body&gt; &lt;/html&gt;</pre> </div> <p><a class="demo button orange btn btn-red">Demo</a></p>https://www.aspforums.net:443/Threads/916253/Submit-data-when-All-TextBox-in-Table-Row-has-value-in-AngularJS/https://www.aspforums.net:443/Threads/916253/Submit-data-when-All-TextBox-in-Table-Row-has-value-in-AngularJS/Wed, 17 Jul 2019 08:14:18 GMTSubmit data when All TextBox in Table Row has value in AngularJS<p>I have modified the answer according to my requirement, this is the answe for my question</p> <pre class="brush: js">$scope.submit = function () { debugger; var a = $scope.mydata.length; for (var i = 0; i &lt; a; i++) { var issueDetails = { &#34;InvoiceId&#34;: $scope.selectedInvoice[0].InvoiceId, &#34;IssueDate&#34;: $scope.currentdate, &#34;PackingListNo&#34;: $scope.plNo, &#34;DispatchId&#34;: $scope.mydata[i].DispatchId, &#34;IssueQty&#34;: $scope.mydata[i].mul, &#34;CreatedBy&#34;: $scope.username }; if ($scope.mydata[i].mul &gt; 0 &amp;&amp; typeof ($scope.plNo) != &#34;undefined&#34;) { $http({ method: &#34;POST&#34;, url: apiUrl + &#34;/api/Warehouse/AddIssueDetails&#34;, data: JSON.stringify(issueDetails), dataType: &#39;json&#39;, contentType: &#39;application/json&#39; }).then(function (data, status) { $scope.issueDetails = &#34;&#34;; }); } else { $window.alert(&#34;Please ensure that required fields are entered&#34;); } } }</pre> <p>&nbsp;</p>https://www.aspforums.net:443/Threads/916253/Submit-data-when-All-TextBox-in-Table-Row-has-value-in-AngularJS/https://www.aspforums.net:443/Threads/916253/Submit-data-when-All-TextBox-in-Table-Row-has-value-in-AngularJS/Wed, 17 Jul 2019 23:37:17 GMT