I asked you questions in the comments, but I will just write a simple solution for choosing so you can see what I was thinking.
, jquery toggle(), . , , , .
$(document).ready( function() {
$('ul#selectable li').toggle( function() {
$(this).addClass('orange'); }, function() {
$(this).removeClass('orange'); } );
});
- li . , , , li , .
, text() " ".
var theSelections = new Array();
$('ul#selectable li[class$="orange"]').each( function(i) {
theSelections[i] = $(this).text();
});