Новые значения в список выбора можно добавить так:
$.each(selectValues, function(key, value) { $(''#myselect'') .append($(''<option>'', { value : key }) .text(value)); });
Код этого примера:
$(''#thebutton'').click(function(){ eval($(''#thearea'').html()); $.each(selectValues, function(key, value) { $(''#myselect'') .append($(''<option>'', { value : key }) .text(value)); }); });