[Answer]-JQuery Cloned django-selectable Autocomplete Dropdowns Not Working

1👍

I haven’t used django-selectable before but I’m guessing it uses javascript/jQuery to make the autocomplete work. When you call clone, it doesn’t clone the javascript for the dropdown. Try doing:

var acClone = autocompleteArray.clone(true);

Passing in true will make jQuery also copy the data and events on that input.

Clone documentation

Leave a comment