I am having some issues with jQuery Autocomplete and moving DownArrow and UpArrow ?
The problem seems to be that
<input id="autocomplete-input" value="">
focus: function (event, ui) {
$('#autocomplete-input').val(ui.item.label);
}
This works great for MOUSE focus - but when I use arrowUp and arrowDown - it selects the ui.item.id over and above the ui.item.label
How can I fix this so that either:
- the
inputval isn't changed at all [i.e. it keeps the users inputted term] - it updates the
inputval with thefocusedval the user is on with keydown/keyup
thanks