I am trying to access the following rectangular element using a sortable jQuery plugin: 
My jQuery code currently looks like this (note the question about even in the get section):
$( "#listA, #listB" ).sortable({ connectWith: ".connected_sortable", delay: 100, receive: function(event, ui) { alert(ui.item.text()); } }).disableSelection();
HTML:
<ul id="listA" class="connected_sortable ui-sortable"> <li> <div id="4"> Test Text </div> </li> </ul>
How do I access this identifier with a warning? I tried alert(ui.item.context.childNodes.id) and the warning returns "undefined".
changes: added HTML and clarified abit question.
Thanks!
source share