Jquery Move from One Box to another
<p>I'm struggling to get a bit of code working on my site although it is working in JSFiddle.</p>

<p>I have this script in the body.</p>

<pre><code>&lt;script type="text/javascript" src="jquery-1.9.1.min.js"&gt;&lt;/script&gt;
&lt;script&gt;
$('.add').click(function(){
$('#first option:selected').appendTo('#second');
});
$('.remove').click(function(){
$('#second option:selected').appendTo('#first');
});
$('.add-all').click(function(){
$('#first option').appendTo('#second');
});
$('.remove-all').click(function(){
$('#second option').appendTo('#first');
});
&lt;/script&gt;
</code></pre>

<p>And I have this to execute the script.</p>

<pre><code>    &lt;div id="input14"&gt;
    &lt;select id="first" multiple="true"&gt;
        &lt;option value="something@something.com"&gt; test &lt;/option&gt;
        &lt;option value="something@something.com"&gt; something@something.com &lt;/option&gt;
        &lt;option value="something@something.com"&gt; something@something.com &lt;/option&gt;
        &lt;option value="something@something.com"&gt; something@something.com &lt;/option&gt;
        &lt;option value="something@something.com"&gt; something@something.com &lt;/option&gt;
    &lt;/select&gt;
    &lt;/div&gt;

    &lt;div id="button14"&gt;



        &lt;center&gt;
        &lt;br /&gt;
        &lt;button class='add'&gt; &gt; &lt;/button&gt;&lt;br /&gt;
        &lt;button class='remove'&gt; &lt; &lt;/button&gt;&lt;br /&gt;
        &lt;button class='add-all'&gt; &gt;&gt;&gt; &lt;/button&gt;&lt;br /&gt;
        &lt;button class='remove-all'&gt; &lt;&lt;&lt; &lt;/button&gt;
        &lt;/center&gt;
    &lt;/div&gt;

    &lt;div id="error14"&gt;

        &lt;select id="second" multiple="true"&gt;

        &lt;/select&gt;



    &lt;/div&gt;
</code></pre>

<p>As I say it works in JSFiddle but not on my localhost, here is the JSFiddle setup <a href="http://jsfiddle.net/8nezD/1/" rel="nofollow">http://jsfiddle.net/8nezD/1/</a></p>

<p>Please can somebody show me the error of my ways!</p>

<p>Thanks</p>
