angularjs - how to select multiple values from two drop down and display it in text-area on the click of submit -
i want select multiple values 2 drop downwards , display in text-area on click of submit button. not know how how values 2 different drop downwards , display in single text area , how write function in controller values drop 2 drop downwards , assign single variable ,so can utilize in text area.
you can utilize ng-model bind selected drop downwards info controller. these basics of angularjs. please check sample fiddle http://jsfiddle.net/6v66f/83/
$scope.containers = [{ id: 1, name: 'box1' }, { id: 2, name: 'box2' }, { id: 3, name: 'box3' }]; $scope.select = function(container) { $scope.selecteditem = container; }; $scope.submit = function() { alert($scope.selecteditem.name +$scope.selecteditem2.name); };
angularjs drop-down-menu
No comments:
Post a Comment