diff options
author | lxf <sng@luxagraf.net> | 2022-05-14 16:38:07 -0400 |
---|---|---|
committer | lxf <sng@luxagraf.net> | 2022-05-14 16:38:07 -0400 |
commit | bb3973ffb714c932e9ec6dd6a751228dc71fe1d3 (patch) | |
tree | 6fa32f9392ad2ec32271349b86a4c1388fd6ba95 /app/utils/static/autocomplete.js |
initial commit
Diffstat (limited to 'app/utils/static/autocomplete.js')
-rw-r--r-- | app/utils/static/autocomplete.js | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/app/utils/static/autocomplete.js b/app/utils/static/autocomplete.js new file mode 100644 index 0000000..514a064 --- /dev/null +++ b/app/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(); +}); |