I'm working with "sortable" jQuery elements and trying to re-order them from the application. Somewhat following this example
What I've done is:
1) Create a list of sortable items. Everything works fine
2) Add all the items to this ListItem variable and delete the original list
var ListItems = $('#lstSortablePSU').find('li');
$('#lstSortablePSU').empty();
3) Now in a loop I need to look up 'li' elements with specific id's in the ListItems variable and add them back to the sortable list container. Something like:
$('#lstSortablePSU').append(ListItems['#li' + PSUname]);
But I guess this /\ looks up by index not key of the array.
FYI: My ListItems variable looks like this after step 2

liDVDD33, why don't you do$('#liDVDD33')?