J Snow
J Snow

Reputation: 61

Drop Down Search Field in Django

Does anyone know of some way to create a text box in Django where when you begin typing in the box, suggestions that contain those letters from a list begin to appear underneath the text box? Similar to Google's autocomplete.

For example in a box where I type in "Br" results underneath the text box may be "Bread", "Bran", "Abraision"

Upvotes: 4

Views: 10086

Answers (2)

rsb
rsb

Reputation: 420

django-autocomplete-light is all what you want .Please go through their tutorialdjango-autocomplete-light

Upvotes: 3

Nuran Afrasiyabov
Nuran Afrasiyabov

Reputation: 108

You need jquery autocomplete plugins. With help of this plugins you send post requests to your django whenever user types something in the input field. You can write return data in special window below input field. For example check this link: https://jqueryui.com/autocomplete/

Upvotes: 0

Related Questions