title: how to get selected option jquery autocomplete
body: <p>I know there's a "select" event but is not working.</p>
  
  <p>This is my code:</p>
  
  <pre><code>$("#Asignacion_Movimiento_OrdenCompra").autocomplete(
          "/Asignaciones/ObtenerOrdenesCompra",
          {
              extraParams: { Serial: function () { return $("#Asignacion_Movimiento_Material").val(); } },
              delay: 200,
              select: function (event, ui) {
                  alert(this.value + " - " + ui.item.value);
                  ObtenerDatosAdicionales();
                  return true;
              }
          }
      );
  </code></pre>
  
  <p>I also tried adding:</p>
  
  <pre><code>result: function (event, data, formatted) {
                  alert(data);
                  ObtenerDatosAdicionales();
                  return true;
              }
  </code></pre>
  
  <p>But nothing happens...</p>
  
  <p>How can I get the value of the selected item by the user?</p>
  
  <p>Thx.</p>