If you have some HTML like this:
<select id="listBox1" size="5">
<option value="1">Item 1</option>
<option value="2">Item 2</option>
<option value="3">Item 3</option>
</select>
<select id="listBox2" size="5">
<option value="4">Item 4</option>
<option value="5">Item 5</option>
<option value="6">Item 6</option>
</select>
<a href="#" id="moveLink">Move selected from list 1 to list 2</a>
Then the following jquery would take the selected items from list 1 and move them to list 2 when the moveLink is clicked.
$(function() {
$('#moveLink').click(function() {
$('#listBox1 option:selected').each(function(i, opt) {
$('#listBox2').append($('<option></option>').attr('value', opt.val()).text(opt.text());
$(opt).remove();
});
});
});
Go to www.jquery.com to get the library to include in the page as well for this to work.