using selectable to set value of variable

using selectable to set value of variable

I am trying to use selectable to set the value for a variable, but I don't seem to be getting it. I am pretty much just using the code from the API example, and then initializing with appendTo. What am I missing?

  1. $(document).ready(function(){
                $('#selectable').selectable({appendTo: '#holder'});           

So #holder is a text box, and in my mind when I select one of those <li> from the example code, the value should show up in the text box.  So far it's all in my mind though.  I looked for a .val() method... Anyway I was going to drop the selected into the text, hide the text box and grab the value there. Of course, I am sure to be approaching this totally wrong.  Any help is appreciated.