How not to allow generating selection using comma and tab jquery autosuggest?
<p>Hey guys, I'm using JQuery's autosuggest and it's working great, just one question. If a user types something and it's not there he could simply click comma or tab and he adds the value. My question is, how can I disable that and allow him only to select the results and nothing else?</p>

<pre><code>&lt;script type="text/javascript"&gt;

$(function(){
    var data = {items: [
    &lt;?php 

    $mysql=mysql_connect('localhost','samaniac','ghobisdabomb');
    mysql_select_db('jmtdy');
    $result=mysql_query("select * from users where username='".$_SESSION['username']."'") or die(mysql_error());
    $dbarray=mysql_fetch_assoc($result);
    $result2=mysql_query("select * from friendship where userid='".$dbarray['id']."'");
    while($dbarray2=mysql_fetch_assoc($result2)){
        $result3=mysql_query("select * from users where id='".$dbarray2['friendid']."'");
        $dbarray3=mysql_fetch_assoc($result3);


        echo '{value: "'.$dbarray3['id'].'", name: "'.$dbarray3['username'].'"},';
        }
        ?&gt;
]};
$("#suggestedfriend").autoSuggest(data.items, {selectedItemProp: "name", searchObjProps: "name", asHtmlID: "clippedon", startText: "Enter Username",retrieveLimit:5});
});







&lt;/script&gt;
</code></pre>

<p>And yes I know I'm using php in my jquery script, but it's working just the way I want it to.</p>
