angularjs list box value selection -
<select multiple ng-multiple="true" class="form-control emailreminder width-169" ng-if="checked" ng-model="selectedreminder" ng-options="x x.title x in emailreminderlist" value="{{x.id}}"> </select>
i not able selected value list in angularjs in controller.js please suggest code selected array value push new array when submit page
html
<select multiple="multiple" id="idselect" class="form-control emailreminder width-169" ng-if="checked" ng-model="selectedreminder" ng-options="x x.title x in emailreminderlist"> </select>
in controller
$scope.savereminder = function() { angular.foreach($scope.selectedreminder, function($value, $key) { $scope.list.push($value.title); }); console.log($scope.list); };
Comments
Post a Comment