问题
first of all sorry about my English...
Well, I try to create a sortable list of questions/answers and it works perfectly in FF but not in IE. In IE, when I try to sort an answer (second level li) the its question and the same group answers moves together with the selected question in a strange way.
Example
If you have any idea please let me know. Thanks in advance!
回答1:
Add this code as well and it should work
$('.answer').mousedown( function(e){ return false; } );
This will stop the bubbling effect of the mousedown event to reach the parent element that is also sortable.
Same thing can be accomplished with
$('.answer').mousedown( function(e){ e.stopPropagation(); } );
example http://jsfiddle.net/eFDWw/20/
来源:https://stackoverflow.com/questions/4333387/jquery-multilevel-list-problem-in-ie