How to get selectable Value.

How to get selectable Value.

Hello,

Sorry I'm pretty new to jquery, and even though I looked everywhere, I can't seem to find the way to get the selected values of my selectable object.

I'm using jQuery UI Selectable, my jquerys are latest version.

I was trying something like this, that I found...

      $("#selectable").selectable({
        stop: function(event, ui){
               domselected = $('#selectable .ui-selected');
               id = (domselected.length ? domselected[0].id : '');
        }
      });

This is the selectable:

    echo "<ol id='selectable'>";
    echo "<li class='ui-widget-content'>##valuethatineed##</li>";
    echo "</ol>";



domselected is a global var that I wish to use.
What I really want is not the ID, but as with it I could get the values I tried that way.

I need to put into domselected, all the text that's been selected, in a vetor or string with separator way.

Thanks in advance.