i have a knockout select as following
observable Array
issuingCountries
0:
ObjectCoordinatorRegion: "EU"
Country: "Australia"
CountryId: 14
Id: 1
2:
ObjectCoordinatorRegion: "AU"
Country: "Japan"
CountryId: 16
Id: 2
html
<select class="issuing_country" data-bind="options: issuingCountries,
optionsText : 'Country',
value:IssuingcountrySelected,
optionsCaption:'---Select---',
"
>
</select>
My question , i have { Country: "Japan" } in my hand,so how to set particular selected item as selected in dropdown.? so far i have tried
$('.issuing_country option[text="Japan"]').prop('selected', true);
but failed ,let me know anyother way to do this. thanks