JSFiddle - React, Tailwind, and code Playground
HTML
<ul id="a_sortable"><br>
<li id="hello">Hello</li><br>
<li id="goodbye">Good bye</li><br>
</ul>
JavaScript
var result = $("#a_sortable li").map(function(){
return this.id;
}).get();
alert(result);