开发者

Make dynamically added div draggable in IE8

I have function which bind draggable functionality to newly added div.

Something like this:

function bind_draggable($el){
    $el.draggable({
 开发者_如何学Go       //options...
    });
}

var $container = $('#container'),
    $div = $(<some content here>);

$container.append($div);
bind_draggable($div);

It works fine in all browsers but fails in IE8. I tried to add ready() handler to $div, but this doesn't help too.


The reason why draggable doesn't work in IE < 9 is distance: 15 declaration in draggable options. In fact delay option is also incompatible with IE < 9

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜