4

我想<form>从客户端发送,其中一个字段<form><select>.
我正在使用淘汰赛数据绑定。

<form method="get" action="http://google.com/" target="_blank">
    <input data-bind="text: name" name="meow">
    <select name="dog" data-bind="options: objects, 
                                  optionsText: function(item){return item.secid},
                                  optionsValue : $data.id">
    </select>
    <input type='submit'>
</form>  

但是来自 select 的值在请求中始终为空。有任何想法吗?
JSFiddle在这里

4

1 回答 1

4

替换$data.idfunction(item){return item.id}

于 2013-01-16T21:05:40.623 回答