knockout multiselect selectedOptions contains values instead of objects

前端 未结 3 1381
一整个雨季
一整个雨季 2020-12-19 17:07

I have a select with the attribute multiple. For each option in the select I want the title attribute set (which shows a tooltip). I also want to retrieve the selected optio

3条回答
  •  南笙
    南笙 (楼主)
    2020-12-19 17:37

    Use options and optionsText bindings instead of foreach:

    
    

    Here is demo: http://jsfiddle.net/p5E8y/

提交回复
热议问题