title: Select2 not submiting with POST
body: <p>I have simple PHP form that utilises selec2, but the data selected are never transmited by the POST method. Anyone know the problem?
  First script
      
      </p>
  
  <pre><code>&lt;head&gt;
  
    &lt;!-- stylesheets --&gt;
    &lt;link rel="stylesheet" href="http://netdna.bootstrapcdn.com/bootstrap/3.0.0/css/bootstrap.min.css"&gt;
  
    &lt;style type="text/css"&gt;
    body {
      padding: 40px;
    }
    &lt;/style&gt;
  
    &lt;!-- scripts --&gt;
    &lt;script src="http://code.jquery.com/jquery-1.10.2.min.js"&gt;&lt;/script&gt;
    &lt;link href="//cdnjs.cloudflare.com/ajax/libs/select2/4.0.0/css/select2.min.css" rel="stylesheet" /&gt;
  &lt;script src="//cdnjs.cloudflare.com/ajax/libs/select2/4.0.0/js/select2.min.js"&gt;&lt;/script&gt;
  
    &lt;script&gt;
      $(function(){
        // turn the element to select2 select style
        $('#pbr').select2();
      });
    &lt;/script&gt;
  &lt;/head&gt;
  
  &lt;body&gt;
  
  
    &lt;form  action="trazi2.php" method="POST"&gt;
    &lt;p&gt;select2 select box:&lt;/p&gt;
    &lt;p&gt;
      &lt;select id="pbr" style="width:300px"&gt;
        &lt;optgroup label="Alaskan/Hawaiian Time Zone"&gt;
          &lt;option value="AK"&gt;Alaska&lt;/option&gt;
          &lt;option value="HI"&gt;Hawaii&lt;/option&gt;
        &lt;/optgroup&gt;
        &lt;optgroup label="Pacific Time Zone"&gt;
          &lt;option value="CA"&gt;California&lt;/option&gt;
          &lt;option value="NV"&gt;Nevada&lt;/option&gt;
          &lt;option value="OR"&gt;Oregon&lt;/option&gt;
          &lt;option value="WA"&gt;Washington&lt;/option&gt;
        &lt;/optgroup&gt;
  
      &lt;/select&gt;
    &lt;/p&gt;
    &lt;input type="submit" name="Trazi" value="Treazi" class="btn btn-default btn-primary" onclick="return validate()"&gt;
  &lt;/body&gt;
  
  &lt;/html&gt;
  </code></pre>
  
  <p>Script being triggered by the Submit button trazi2.php</p>
  
  <pre><code>&lt;?
  
  $pbr = $_POST["pbr"];
  print $pbr;
  ?&gt;
  </code></pre>
  
  <p>Nothing gets passed, anyone knows the problem?</p>