Create a link based on what the user selects from this jQuery UI selectable drop box
===

I'm using this:

http://jqueryui.com/demos/selectable/#method-option

This is my code:

    <ol id="selectable">
    	<?php foreach ($collection as $key=> $word): ?>
    	<li class="ui-widget-content"> <?php echo $word ?> </li>
    	<?php endforeach ?>
    </ol>

How do I get a hyperlink created based on what the user selects? All the words are different each time.