I have an observable array of objects
question = {
ownerUserName: item.id,
text: item.text,
dataType: item.dataType,
personalized: item.personalized,
status: item.status,
actionUserName: item.actionUserName
}
And select options from this array:
<select id="questId" style="width: 425px" data-bind="options: questionList, optionsText: 'text'">
How can I make a knockout so that if question.personalized == "Y" the text color of this question is green?
source
share