title: Jquery - Initialize Select Box after first use
body: <ol>
  <li>Page is loaded with a hidden select box in it.</li>
  <li>I click on a button</li>
  <li>I append elements to this select box, I move it and I make it visible</li>
  <li>I apply plugin <code>Chosen</code> on it</li>
  </ol>
  
  <p>This is done by this function </p>
  
  <pre><code>function moveHiddenSelect(idOffline, type, idMedia, mediaName){
      var $selToReplace  = $("#"+type+"_"+idOffline);
      var $selOriginal   = $("#originalSelect");
      $selToReplace.replaceWith($selOriginal);
  
      $.getScript('/lib/chosen/chosen.jquery.min.js', function(){
          $selOriginal.chosen(); //load plugin script and apply it on the select box
      });
  
      $selOriginal.css("width", "220px");
      $selOriginal.css("visibility", "visible");
  }
  </code></pre>
  
  <p>No problem when I click the button one time, but when I click again on the button (step 2) nothing is happend..</p>