I'm not quite sure what you're asking, so clarification would be helpful. Here's my crack at what your looking for:
Javascript
<script type="text/javascript" charset="utf-8">
 $( function() {       
   // Add number from <input> as an <option> to the <select>
   $('#add_number').click( function() {
     // Get Number from <input>
     var numberToAdd = $('#number_to_add').val();
     // Make sure it's not a duplicate; if so, don't add
     var match = false;
     $('#mySelect option').each( function() {
       if (numberToAdd == this.value) match = true;
     });
     if (match) return false;
     // Add the number to the <select>
     $('#mySelect').append(
       $('<option></option>').html(numberToAdd).val(numberToAdd)
     );
     // Show the remove button
     $('#remove_selected').show();
     return false;
   });
   // Remove the currently selected <option> in the <select>
   $('#remove_selected').click( function() {
     $('#mySelect option:selected').remove();
     return false;
   });
 })
</script>   
HTML
<form action="#">
  <p>
    Number: <input type="text" name="number_to_add" id="number_to_add" />
    <button id="add_number" type="button">Add</button>
  </p>
  <p>
    <select id="mySelect" size="9"></select>
    <button id="remove_selected" type="button" style="display:none;">Remove</button>
  </p>
</form>