According to jQuery API page:
As of jQuery 1.7, .delegate() has been superseded by the .on() method.
Fiddle Demo
jQuery:
$(function () {
$('#jqxTree').on('mouseenter mouseover', 'li > ul', function () {
$(this).draggable({
revert: true,
revertDuration: 0
});
});
});
In CSS, use >
between parent and child elements.
Also you had li li
instead of li ul
.