diff options
Diffstat (limited to 'apps/utils/static/autocomplete.js')
-rw-r--r-- | apps/utils/static/autocomplete.js | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/apps/utils/static/autocomplete.js b/apps/utils/static/autocomplete.js new file mode 100644 index 0000000..ad0c70d --- /dev/null +++ b/apps/utils/static/autocomplete.js @@ -0,0 +1,10 @@ +function autoCompleteItems() { +var item = document.getElementById('id_ap'); +var singlePresetOpts = new Choices(item, { + searchPlaceholderValue: 'Search for Animal', + placeholder: true, +}); +} +document.addEventListener("DOMContentLoaded", function(event) { + autoCompleteItems(); +}); |