Simulate picking up a value with jQuery Tokeninput plugin
<p>I'm writing a test for a web application that uses the <a href="http://loopj.com/jquery-tokeninput/" rel="nofollow">jQuery Tokeninput plugin</a>. I have no problem <em>typing</em> in the text field but then picking from the list of pottential matches is something I couldn't manage to do.</p>

<p>My input is not that different from any of the Tokeninput demos that can be found here: <a href="http://loopj.com/jquery-tokeninput/demo.html" rel="nofollow">http://loopj.com/jquery-tokeninput/demo.html</a>, I have a form with an input:</p>

<pre><code>&lt;form&gt;
    &lt;input id="foobar" type="text" value="" /&gt;
&lt;/form&gt;
</code></pre>

<p>and then I enable tokeninput on it:</p>

<pre><code>var input = $("input#foobar");
input.tokenInput(options, {prePopulate: selected_options, theme: "facebook"});
</code></pre>

<p>Any ideas how to do it?</p>
