jQuery UI Autocomplete Click Timeout

[Jul 18, 2010]


jQuery UI Autocomplete seem to have timeout when clicking to select the item.

We can work around this issue by implementing the focus event as below...

$('#input_id').autocomplete({
  source: 'search.php',
  focus: function(event, ui) {
    $('#input_id').val(ui.item.value);
    return false;
  }
} 

http://jqueryui.com/demos/autocomplete/#custom-data


Home
Web Log
Contact Me
© 2008-2012 Khomsan Phongphisansakun
May 19th, 2012