Autocomplete - Redirect/ Filter Enter Key

by bizamajig

HTML

<input id="my input"/> <input />

JavaScript

$('input').autocomplete({
    autoFocus: true,
    source: ["test","some text"],
    delay: 0,
    select: function(event, ui) { if (event.keyCode == 13) { 
       $(this).next("input").focus().select();
    } }
});