user527584
user527584

Reputation: 95

Jquery multilevel list problem in IE

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!

Upvotes: 2

Views: 349

Answers (1)

Gabriele Petrioli
Gabriele Petrioli

Reputation: 196197

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/

Upvotes: 1

Related Questions