Radio buttons Knockoutjs

后端 未结 2 1913
情深已故
情深已故 2020-12-15 18:23

I have 2 values that I get from server A and B. I can only have one true at a time.

Again what I need is one of the radios to be checked at a time so one true value

2条回答
  •  挽巷
    挽巷 (楼主)
    2020-12-15 18:58

    Knockout 3.x added the checkedValue binding option. This allows you to specify values other than strings.

        
        
    

    http://jsfiddle.net/t73d435v/

提交回复
热议问题