KnockoutJS: How to add one observableArray to another?
问题 I want to add selected options from select element to binding table. The view model has addItem function that add selectedItems array into addedItems array with using ko.utils.arrayPushAll(). But nothing happens when I click on Add button (calls addItem function). How to correctly add one observable array to another? HTML <label>Parameter list</label> <br/> <select multiple="multiple" data-bind="options: items, selectedOptions: selectedItems, optionsText: 'name', optionsValue: 'id'"> </select