I have the following
<div id="entries_list">
<div id="entry_51" class="entry" data-entry_id="51">
some text
</div>
</div>
I am making entries_list sortable using jQuery UI. I need to do something when the user ‘drops’ an entry div, which can be done by:
$("#entries_list").sortable({
stop: function(event, ui) {
console.log(ui);
}
});
What is the easiest way to access the data-entry_id attribute of the entry div from within the stop function? The console ouput of ui looks like this:

try