How to stop event Enter keyCode (13), then execute tab keyCode(9)
<p>I have a combobox, when input data, combobox search data then klick or press down arrow then enter / tab to choose that option, Enter keyCode(13) just working in combobox if the data focus but Tab keyCode(9) working / choose option without focus, but I can't find how to focus in combobox</p>

<p>this is my combobox code :</p>

<pre><code>$('#ManifestDetail'+i+'AwbNumber').combobox({});
</code></pre>

<p>this is my html form code :</p>

<pre><code>&lt;select id="ManifestDetail0AwbNumber" onchange="completeData(0)" name="data[ManifestDetail][0][awb_number]" style="display: none;"&gt; &lt;option value=""&gt;-- Select Awb --&lt;/option&gt; &lt;option value="209468"&gt;0164914&lt;/option&gt; &lt;option value="209461"&gt;0164931&lt;/option&gt; &lt;/select&gt;&lt;input class="ui-autocomplete-input ui-widget ui-widget-content ui-corner-left" autocomplete="off" role="textbox" aria-autocomplete="list" aria-haspopup="true"&gt;
</code></pre>

<p>if possible, can i set autofocus in combobox jQuery in my code ?.. if isn't how can I set enter keyCode(13) to tab keyCode(9), so when I press enter jQuery execute tab keyCode(9).</p>

<p>I already try with this code :</p>

<pre><code>$('.ui-autocomplete-input').keypress(function(e){
                if (e.keyCode == 13){
                    e.preventDefault();

                    var ne = new jQuery.Event("keyup");
                    ne.which = 9;
                    $(e.target).trigger(ne);
                }
            });
</code></pre>

<p>Thanks in Advance.</p>