I am trying to bind a select options with values from my array without success. I have tried to change how i work with the array my changing to from an observable to observableArray but it wont take the values.
This is my current attempt.
<select name="status"
data-bind="options: statuses,
optionsValue: 'key',
optionsText: 'value',
value: status "></select>
Knockout:
$statuses = {
1: 'Open',
2: 'Closed',
3: 'On hold'
}
self.statuses = ko.observable($statuses);
self.status = ko.observable(null);