jQuery Sortable - How to get current dragged element attribute
问题 I am using jqueryui sortable widget. I need to get the current dragged element's data attribues. $(this).data('attribute_name') is not working here. I have also tried some other methods, but not getting the correct result. HTML <ul class="draggable-item" style="min-height:10px;"> <li data-parent="31" data-id="81" class="ui-state-default">Label</li> <li data-parent="31" data-id="86" class="ui-state-default">Max Value</li> <li data-parent="31" data-id="83" class="ui-state-default">Unit</li> <li