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
精彩评论