I use Knockoutjs options binding to populate my selects as this
<select data-bind="value: val, options: options, optionsText: 'text', optionsValue: 'ID'">
</select>
But for some option, the text is the same. Then I would like to add a title attribute to add information. Can I do that with knockout without modifying knockoutjs itself ?
May be using a function in optionsText, but I can't see How
You can do it using the foreach binding, like this:
Here is a working example.