I have the follwing knockout code but the resulting dropdownlist in html page dose not show anything.
<script type='text/javascript' src='knockout-3.3.0.js'></script>
<p>
Behandlingsmetod:
<select data-bind="options: behandlingsmetod, value: selectedbehandling,
optionstext:'selectedbehandling',
optionsCaption: 'Choose...'" size="5" multiple="true"></select>
</p>
<script>
function BehandlingViewModel()
{
var self = this;
self.förnamn = ko.observable();
self.lastName = ko.observable();
self.personnummer = ko.observable();
self.behandlingsmetod = ko.observableArray(['first', 'second', 'third']);
self.selectedbehandling = ko.observable();
};
ko.applyBindings(new BehandlingViewModel());
</script>