title: Select2 jquery - How to get text in selectbox
body: <p>I have input text like</p>
  
  <pre><code>&lt;input type="hidden" name="xa" id="xa" data-placeholder=".." style ="width: 360px;"/&gt;
  </code></pre>
  
  <p>and i using select2</p>
  
  <pre><code>$("#xa").select2({...});
  </code></pre>
  
  <p>now, i want to get text when i press 'get text'</p>
  
  <pre><code>$("#gettext").click(function () {
      alert($('#xa').val());  // or $('#xa').select2("val");
  });
  </code></pre>
  
  <p>But it get the id of text. It's not text. How can i do it. thanks</p>