This repository was archived by the owner on Jul 10, 2025. It is now read-only.

Description
Hello, my code looks as follows and even though I am able to select the items properly, I am trying to create an array of the IDs of the items selected, but all I get is a blank {} curly brackets.
Here is the code I'm using:
<div id="row_P6CtxjdhyiEPOPxilMHf" class="files-item ui-selectable ui-selected">
</div>
var ids = $('div#showFiles.file-list.ui-selected').map(function() {
return $(this).attr('id');
});
alert(ids.length);
alert(ids[0]);
I get zero and then undefined in the output function
Best regards