Can a Knockout observable be data bound to the value of a radio button?

后端 未结 3 696
心在旅途
心在旅途 2021-01-21 08:31

Is it possible to bind a Knockout observable property to a radio button using a value binding?

Here\'s what I\'m trying to do, but the value ends up being the string \"[

3条回答
  •  小鲜肉
    小鲜肉 (楼主)
    2021-01-21 09:08

    FYI for other readers coming to the accepted answer, KO v3 added the checkedValue binding which now makes this possible.

提交回复
热议问题