<script> $(function () {var runset_name_list={{runset_name_list | safe}}; $(" # runset_name "). The autocomplete ({source: runset_name_list}); }); </script>
Have great god help look at it, why I use the following script, click on the input box wouldn't have input of recorded history, is the browser's built-in functions, such as online!!!!!
CodePudding user response:
Because you add the autocompleteCodePudding user response:
You this is to use the autocomplete jquery UI plug-in, closed primary autocomplete the plug-in, and wrote,You can look at the source of the autocomplete, internal have write the
$. Widgets (" UI. Autocomplete ", {
//...
_create: function () {
//...
Enclosing _addClass (" UI - autocomplete - input ");
Enclosing element. Attr (" autocomplete ", "off");
//...
}
})
CodePudding user response:
That I how both functions with it?? Can I click in the browser's own aotucomplete, when the input to use jqueryCodePudding user response:
This you see HTML & lt; Input> Tag autocomplete attributeCodePudding user response: