First of all, thank you in advance. On my JSP page, I have two select tags. During runtime, I need to remove multiple selected options from one tag and insert them into another tag. The code snippet below demonstrates how I am able to add and remove a single option tag.
$("input[type=button]").removeAttr("disabled");
var option = $('#availableExpert option:selected');
$('#availableExpert option:selected').remove();
$('#assignedExpert').append('<option value='+option.val()+'>'+option.text()+'</option>');
Now, the question arises: How can this be achieved with multi-select options tags?