x-data="{}" x-sortable x-on:end="console.log('end', $event); itemsSordetIds = $event.target.querySelectorAll('[x-sortable-item]'); itemsSordetIdsArray = []; for (var i = 0; i < itemsSordetIds.length; i++) { itemsSordetIdsArray.push(itemsSordetIds[i].getAttribute('x-sortable-item')); } console.log(itemsSordetIdsArray) "