Knockout and jQuery Mobile: Binding data to select lists

后端 未结 4 1357
Happy的楠姐
Happy的楠姐 2020-12-29 14:17

I\'m using both Knockout (version 2.0) and jQuery Mobile (version 1.0.1) in the same project. The problem is with binding data to select lists. jQuery Mobile presents select

4条回答
  •  心在旅途
    2020-12-29 14:57

    For my personal experience (with jquerymobile 1.1.0 and knockoutjs 2.1.0), I've only used jqmoptions (as seen in the first post) binding to have a valid knockout binding to a select. To make 'value' binding works with select, simply declare it as first in the binding

    
    

    Looks that the order is mandatory: http://goo.gl/nVbHc

提交回复
热议问题