Jquery adding and removing items from listbox
<p>I've created this <a href="http://jsfiddle.net/j2ctG/" rel="nofollow">fiddle</a>, it allows the user to click on either art or video, dynamically populating the the second listbox with the list associated with those selections. There are two buttons, one to add the selection to the box, the other which removes the selection.</p>

<p>What I would like to do is prevent the user from adding some that has already been added. The value of the options will all be Guids. Bonus points if you can modify the fiddle to use Guid instead of ints.</p>

<p>I've tried this:</p>

<pre><code>$.each($("#SelectBox2 option:selected"), function (i, ob) {
    if (i == $(this).val()) {

    } else {
        inHTML += '&lt;option value="' + $(this).val() + '"&gt;' + $(this).text() + '&lt;/option&gt;';
    }
});
</code></pre>

<p>I would like to enable the user to remove the selected items from the list.</p>

<p>Thanks,</p>

<p><strong>UPDATE</strong> Just letting you guys know what the solution is that I came up with, I got the bonus points because i added GUID to it in a really smart way :) <a href="http://jsfiddle.net/Lz5YM/" rel="nofollow">fiddle</a>, I also tidied up the html to make it look nice and neat.</p>

<p><strong>MAJOR UPDATE</strong> A massive thanks to everyone who has contributed to this question, I have taken on board everyones comments and fiddles and have generated this <strong>>></strong> <a href="http://jsfiddle.net/no1_melman/dpjQY/" rel="nofollow">fiddle</a> <strong>&lt;&lt;</strong></p>
