jQuery Mobile:多个选择菜单只传输单个值

问题描述 投票:0回答:1

我正在关注jquery mobile ui“muliple select forms”,目标是可以在post表单上选择多个值。 qazxsw poi

我的代码的相关部分如下所示:

http://demos.jquerymobile.com/1.4.5/selectmenu-custom/

表单将发布此uppon选择多个值:

<select name="attributes[27]" id="attributes[27]" multiple="multiple" data-native-menu="false" data-mini="true">
    <option>auswählen</option>
    <option value="315" >Drehbare Lünette</option>  
    <option value="307" >Edelsteinbesatz</option>
    <option value="301" >Genfer Siegel</option>
</select>

如何传输多个值?我的代码看起来就像示例中的代码一样。

jquery jquery-mobile
1个回答
2
投票

在另一个帖子中找到问题的解决方案:Array ( [27] => 301 )

名称标签最后需要[](jQueryMobile: Multiple-Select sent all values to server。这在jQuery Mobile文档中缺失。

© www.soinside.com 2019 - 2024. All rights reserved.