I am using jQuery-ui autocomplete. Here is how i use it
<form action="go.php" method="post">
<input id="txt" type="text" />
</form>
<script>
$('#txt').autocomplete({
source: [{'label': 'milan', 'value': '1'}, {'label': 'minos', 'value': '2'}]
})
</script>
When i type 'mi', milan
and minos
shows up.No problem with that. However when i focus on them with down key value of #txt
changes to 1
(value for milan) instead of milan
. How can i show milan
when i focus on it. Thanks