diff options
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(); +}); |