代码之家  ›  专栏  ›  技术社区  ›  Gregg

serialize()可排序手风琴

  •  0
  • Gregg  · 技术社区  · 15 年前

    我已经创建了一个可排序的accordion,但我似乎不知道如何像在非accordion可排序上那样序列化索引。

    $(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');
        }
    });
    
    1 回复  |  直到 15 年前