Can I get jQuery autocomplete to match input without going through dropdown?
<p>I would like to get my autocomplete to return a "hidden" property when I blur out of the textbox or press enter. The data is in format <code>{value: "Pal", pts: "30"}</code>. I want to obtain <code>pts</code>. Here's an example:</p>

<p><a href="http://jsfiddle.net/ctuAg/4/" rel="nofollow">http://jsfiddle.net/ctuAg/4/</a></p>

<p>Typing a letter or two and choosing a name from the dropdown updates the "points" textbox as expected (10 times the name length). Now, I'd like to know if there's a way of triggering this points update when a name is fully typed and then Enter is pressed, or blurred (tab or mouse click). That is, have the autocomplete search a match to the textbox value and update points.</p>

<p>So far as I've seen only clicking on a name in the dropdown causes the points to be updated.</p>

<p>I did some searching and the closest function/trigger I found was <code>search</code>. I tried placing this inside blur but .pts returns undefined. This might be the answer, how should I use it in my case?</p>

<pre><code>    $("#autocomp").autocomplete({
      search: function(event, ui) {
        alert(ui.item.pts);
      }
    });
</code></pre>
