【问题标题】:jquery mobile data-native-menu=false not working on iOS,jquery mobile data-native-menu=false 在 iOS 上不工作,
【发布时间】:2013-08-28 21:13:22
【问题描述】:

我尝试在 iOS 上使用自定义多选,使用 jquery mobile 1.3.2,但是当我设置标志 data-native-menu=false 时,没有任何反应,没有使用原生选择,当然也没有弹出自定义选择, 没有。这是代码

<select name="poimain_category_select" id="poimain_category_select" multiple="multiple" data-native-menu="false" data-placeholder="true"">
                    <option id="poinmain_category_select_holder" value=""><%print(T('SELECT_CATEGORY'))%></option>
                        <%print(poidata['category_data'])%>
                    </select>

【问题讨论】:

  • 我有同样的问题,1.3.2 旧版本的代码工作得很好

标签: ios jquery-mobile multi-select


【解决方案1】:

我在使用 tapHold 时遇到了同样的问题。我在绑定时在我的 id 中添加了“-button”,它起作用了。

来自 HTML 文件:

<select id="selectVaapen" data-native-menu="false"  data-inline="false">
    <!-- Empty -->
</select>

来自 javascript 文件:

$(function() {
    $("#selectVaapen-button").bind('taphold', function(event) {
        console.log("tapholdHandler");
    });
});

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2015-05-20
    • 1970-01-01
    • 2013-09-15
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多