开发者

sortables in tabs

EDIT 1:

You can try this by removing the sortable script from the link below. As soon as you remove i开发者_如何学JAVAt, the tabs start working.

ORIGINAL QUESITON:

I have the following script:

http://jsfiddle.net/oshirowanen/mYx5y/

It consists of tabs and sortables.

For some reason, as soon as I add the sortable script, the tabs stop working. Why is this happening? Along side that, the sortables don't work either.


Your code had a lot of errors (extra brackets). I fixed them and it works now : http://jsfiddle.net/bs2VV/

EDIT code follows

$("#tabs").tabs();

$(".column").sortable({
    connectWith: '.column',
    update: function(event, ui) {
        alert($(this).closest("div").attr("id"));
        alert($(this).sortable('serialize', {
            key: 'item'
        }));
    }
});

$(".column").disableSelection();
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜