Can someone assist me with fetching row data when a checkbox is selected using angular.js? Here is the code I am working on:
<tbody id="detailsstockid">
<tr ng-repeat="p in viewIncompleteData">
<td>
{{$index+1}}<input type="checkbox" ng-model="checkboxModel.value1">
</td>
<td>
{{p.Product_name}}
</td>
<td>
{{p.Discount}}
</td>
<td>
{{p.Offer}}
</td>
<td>
{{p.unit_cost_price}}
</td>
<td>
{{p.unit_sale_price}}
</td>
<td>
{{p.quantity}}
</td>
<td>
</td>
</tr>
</tbody>
<div style="text-align:center; padding-top:10px;" ng-show="updateButton">
<input type="button" class="btn btn-success" ng-click="UpdateProductstockData();" id="addProfileData" value="Add Total"/>
</div>
When the user clicks on the Add Total
button, the validation will be checked to see if any checkboxes are selected. If a checkbox is selected, the corresponding row data will be fetched inside the click event function. Can anyone provide guidance on this?