title: Can't type in Select2 dropdown input search field (http://kevin-brown.com/select2/)
body: <p>Can't type in Select2 dropdown input search field (<a href="http://kevin-brown.com/select2/" rel="noreferrer">http://kevin-brown.com/select2/</a>)</p>
  
  <p>I have found many issues listed which mentions the same problem but nothing worked for me (<a href="https://www.google.com/search?q=can%27t+type+in+select2&amp;ie=utf-8&amp;oe=utf-8&amp;client=firefox-b-ab" rel="noreferrer">https://www.google.com/search?q=can%27t+type+in+select2&amp;ie=utf-8&amp;oe=utf-8&amp;client=firefox-b-ab</a>). I can't type in Select2 dropdown input search field in model dialog using jQuery. By the way i can select value fine from dropdown. Tried inserting tabindex: 0 but no luck.</p>
  
  <h1>Code:</h1>
  
  <pre><code>$.ajax({
      type: "POST",
      url: "&lt;?php echo $myScripts; ?&gt;",
      data: { id1: "get-release-dropdown-html", id100: "&lt;?php echo $dbTable; ?&gt;" },
      success:function(releaseDropdown){
  
          $('#progress').hide();
  
          $( "#modelDialog1" ).dialog({
              modal: true,
              width: '570',
              height: '600',
              resizable: true,
              position:
              {
                  my: "center",
                  at: "center",
                  of: window,
               },
              title: "Trigger Build",
              open: function() {
  
                  $(this).html("&lt;br/&gt;Please select job options.&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;b&gt;Release:&lt;/b&gt;" + releaseDropdown + "&lt;div style='margin-top:30px;'/&gt;&lt;b&gt;Build Release Candidate:&lt;/b&gt;&lt;select id='sReleaseCandidate'&gt;&lt;option value='ga' selected&gt;GA&lt;/option&gt;&lt;option value='beta1'&gt;BETAX&lt;/option&gt;'&gt;&lt;/br&gt;");
  
                  $("#sDescription").focus();
  
                  $("#sRelease, #sReleaseCandidate").select2({
                      tags: true
                  });
              },
  
              close: function() {
                  $( this ).dialog( "close" );
  
              },
  
          });
  
      }
  
  });
  </code></pre>