A lightweight autocomplete plugin using JQuery
- Load JQuery library
- Load autocomplete-lite.js library
- Initialize autocomplete on element and pass autocomplete list as an array
$('#jquery_object').autocomplete_init(data_array);
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js"></script>
<script src="autocomplete-lite.js"></script>
<input type="text" id="autocomplete_input">
<script>
// initializing
$('#autocomplete_input').autocomplete_init(["aaa", "bbb", "ccc", "ddd", "eee", "fff"]);
</script>