title: event when an option is selected using Ajax
body: <p>I have a text box when i start typing it gives a ajax cal and i will have some suggestions in it. now, when i select an option from that autosuggest, is there any event so that i can capture that selected option in js file so that i can continue. </p>
  
  <p>i tried,</p>
  
  <p>this one gives nothing,</p>
  
  <pre><code>$("#searchPin").select(function() {
          var pin = $("#searchPin").val()
          alert(pin)
      });
  </code></pre>
  
  <p>and i used change event but it just capturing the text which i written in the text box not the one which i selected from ajax call drop down. any ideas?</p>