Python Django How to Create a simple Autocomplete Dropdown using HTML5 Datalist

preview_player
Показать описание
Python Django How to Create a simple Autocomplete Dropdown using HTML5 Datalist

Рекомендации по теме
Комментарии
Автор

Congrats! really good video. Short and straight to the point. Clear code. Continue like this man!

canislatrans
Автор

Thank you very much! No need for jquery or javascript, pretty simple and nice solution.

jonataslemos
Автор

Thank you brother, I wanted this for real.

AdelinBonheur
Автор

Superb bro without jquery, can u pls explain in crispy form

asgeralia
Автор

Thank you very much! Very useful and simple solution.

dannybarajas
Автор

How add country, state and city.
Suppose we have three drop-down list country, state and city.
When we select a country then state should be of that country in state drop-down list and all city should be of selected state.
How to create this type Drop-down list in django project

lujahawhsuk
Автор

hey can you please tell me how to get this selected value to view.py?

hunny.dhawan.
Автор

Thanks you for your tutorials. I request you to make a tutorials about autocomplete address information where user just submit pin code then division, district and upazila automatically set from database or views.py like choice fields

akmshariaradditionaldirect
Автор

Thanks for the video...!!! I have a question,
The Autocomplete Dropdown works fine, but, I need something else, I do not want to receive a TEXT as value, I want to receive an ID.
When I make this change Value = ID, I see the ID into the dropdown but I do not want to see it. I want an user selects a name and I want to receive an ID.
Could you help me?

This is the example:

<input type="text" name = "equipo_list" id="equipo_list" list="equipolist" placeholder="Ingrese Equipo.." >
<datalist id="equipolist">
{% for result in form8 %}
<option value="{{result.id_equipo}}"> {{result.nro_interno}} - {{result.descripcion}} </option>
{% endfor %}
</datalist>

RESULT DROP DOWM -->>> ID_EQUIPO + NRO_INTERNO + DESCRIPCION
I want -->>> NRO_INTERNO + DESCRIPCION

gustavoarias