I am using knockoutjs to bind a select list. Here is a Sample , I want to get selected option text instead of selected value.
How to get it using knockoutjs ?
vm.selectedCountryName = ko.computed(function () { var text = ''; ko.utils.arrayForEach(vm.countries(), function (item) { if (item.CountryId == vm.selectedCountry()) { text = item.CountryName; return; } }); return text; });