Created
March 24, 2016 13:16
-
-
Save ville6000/6f4a0c8a01eaf9caf8bb to your computer and use it in GitHub Desktop.
Display jQuery UI Autocomplete list on input focus
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$(function () { | |
$("#input_field").autocomplete({ | |
source: your_data, | |
minLength: 0 | |
}).focus(function(){ | |
$(this).data("uiAutocomplete").search($(this).val()); | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment