【问题标题】:serialize() sortable accordionserialize() 可排序手风琴
【发布时间】:2010-07-07 14:39:48
【问题描述】:

我在 jQueryUI 论坛上问过这个问题,但没有得到回应。

我已经创建了一个可排序的手风琴,但我似乎无法弄清楚如何像在非手风琴可排序上那样序列化索引。

在我的 H3 元素上,我有 id="agendas_1234",然后是以下代码。但是我定义 params 变量的行不起作用。我得到的 [1234,3456,123] 与常规可排序(没有手风琴)不同

$(tab).find('#accordion').accordion({
    header: "> div > h3",
    collapsible: true
}).sortable({
    axis: "y",
    handle: "h3",
    stop: function(event, ui) {
        stop = true;
    },
    update: function(event, ui) {
        var params = $(this).sortable('serialize');
    }
});

【问题讨论】:

    标签: jquery jquery-ui jquery-ui-sortable jquery-ui-accordion


    【解决方案1】:
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2016-07-18
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2014-12-18
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多