Hi,
I have 4 values in customer array like below
CustomerId
1,2,3,4
ex:OrderId=1 has 2 customer id's (2,3)
after clicking of edit button
in multiple checkbox it was checking last customerid
i need to check 2 customer id's
coudl you please help me
Js
- for (var i = 0; i < $scope.Customer.length; i++) {
- for (var j = 0; j < data.length; j++) {
- if (data[j].CustomerID == $scope.Customer[i].id) {
- $scope.CId = [$scope.Customer[i]];
- break;
- }
- }
- }
html
- <div ng-dropdown-multiselect="" extra-settings="dropdownSetting"
- options="Customer" selected-model="CId" checkboxes="true" style="display: inline; width: 252px;"></div>