开发者

Jquery Sortable for child not working in IE

Guys i have the following UL elements. The nested UL(nestsort) items are sortable in the IE browser Version 7 , but the drag movement seems wired ,while it works smooth in firefox.Please click on this link http://jsfiddle.net/Ds7ds/1/ from IE , the code is in jsfiddle.

<ul id="sortable">
    <li>
        <p> item 1</p>
        <ul id="nestsort">
            <li>
                Sub item 1 
            </li&开发者_如何学运维gt;
            <li>
                Sub item 2
            </li>
            <li>
                Sub item 3 
            </li>
        </ul>
    </li>
    <li>
        <p> item 2</p>
    </li>
</ul>



$("#sortable").sortable();
$("#nestsort").sortable();


This should work for you :

$( "#sortable" ).sortable({

cancel: "#nestsort"

});

$("#nestsort").sortable();

Wish you luck.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜