Manipulate Select Multiple List Setup On Page Load
<p>I have the following two select (multiple lists) which I'm trying to setup as a shuttle by where I provide the user an "Available List" on the left which they can select from, which then gets transported to the right select list, which is my "Assigned List".</p>

<p>The HTML code is as follows:</p>

<pre><code>&lt;select multiple="multiple" name="avail_list" size="7" style="width:250px;" id="AVAILABLE_LIST"&gt;
    &lt;option value="A"&gt;A1&lt;/option&gt;
    &lt;option value="B"&gt;B1&lt;/option&gt;
    &lt;option value="C"&gt;C1&lt;/option&gt;
    &lt;option value="D"&gt;D1&lt;/option&gt;
    &lt;option value="E"&gt;E1&lt;/option&gt;
    &lt;option value="F"&gt;F1&lt;/option&gt;
&lt;/select&gt;

&lt;select multiple="multiple" name="assign_list" size="7" style="width:250px;" id="ASSIGNED_LIST"&gt;
    &lt;option value="D"&gt;D1&lt;/option&gt;
    &lt;option value="E"&gt;E1&lt;/option&gt;
    &lt;option value="F"&gt;F1&lt;/option&gt;
&lt;/select&gt;
</code></pre>

<p>Through the use of jQuery, how could I possibly remove from the AVAILABLE_LIST, the options that have been selected and are now in the ASSIGNED_LIST?</p>

<p>I need to some how perform on the option values only (AVAILABLE_LIST minus ASSIGNED_LIST).</p>

<p>So based on the above, the AVAILABLE_LIST would then look like this:</p>

<pre><code>&lt;select multiple="multiple" name="avail_list" size="7" style="width:250px;" id="AVAILABLE_LIST"&gt;
    &lt;option value="A"&gt;A1&lt;/option&gt;
    &lt;option value="B"&gt;B1&lt;/option&gt;
    &lt;option value="C"&gt;C1&lt;/option&gt;
&lt;/select&gt;
</code></pre>

<p>**NOTE:Just to make myself clear, I already have the above data setup when entering my page, that is, there are already values in the "Assigned List" on the right. </p>

<p>On entry when presenting this page with the two select lists to the user, I want to programmatically perform the minus between the two sets in the background. There is no human interaction required as the selection has already been made.</p>

<p>Just wondering if this is possible?</p>

<p>Thanks.</p>
