jquery-select2 / Copy selection from one field to another
<p>I adapted some javascript to work with jquery “select 2” plugin in order to duplicate the selected fields to another part of the form. The only issue is that I am not able to get this to function with the new version of "Select 2" (v.4.0.3). Apparently some methods have been deprecated in the new version and this breaks my code.</p>

<p>Does anyone have insight how I may be able to duplicate form inputs with the latest version?</p>

<hr>

<p>Here is my working example of the old select 2 version (v3.5) in jsfiddle. I would like to try and emulate this with the latest version.</p>

<p>Working in Select2 v3.5</p>

<blockquote>
  <p><a href="http://jsfiddle.net/jinch/0oao3wo0/" rel="nofollow noreferrer">http://jsfiddle.net/jinch/0oao3wo0/</a></p>
</blockquote>

<p>Broken in Select2 v4.0.3</p>

<blockquote>
  <p><a href="http://jsfiddle.net/jinch/jr3L0q4f/1/" rel="nofollow noreferrer">http://jsfiddle.net/jinch/jr3L0q4f/1/</a></p>
</blockquote>

<p>And here is the basic code I pieced together.</p>

<pre><code>$('#shipping_state').select2('val', $('#billing_state').select2("val").toString());
</code></pre>

<p>Any suggestions welcome.
Thank you.</p>