Showing a concatenated string from multiple values of observable array
问题 I have an observable array as follows.. var myObservableArray = ko.observableArray([ { name: "Bungle", type: "Unknown" }, { name: "George", type: "Unknown" }, { name: "Zippy", type: "Unknown" } ]); I wish to fill a select listbox from elements in the observable array such that the option names are concatenated string of 'name' and 'type' like "Bungle-Unknown","George-Unknown",.etc The optionvalues are just 'name'. Any help is sincerely appreciated. Thanks 回答1: In your binding on the select