I need to make an input field autocomplete using LookUp created in django. This field is not created using django form (bcoz of some requirements ) so i can not use 'AutoCompleteSelectField'.
What is the best way to make an input field autocomplete using jQuery/javascript ?
function activateSelectableInput(lookup_url){
var input_field = $("#MyInputField");
input_field.addClass("autocompletewidget ui-autocomplete-input ui-widget ui-widget-content ui-corner-all ui-state-error");
input_field.attr("data-selectable-url", lookup_url);
input_field.attr("data-selectable-type","text");
input_field.attr('data-selectable-allow-new','false');
window.bindSelectables("body");
}