How to Create a Dependent Dropdown List using Django and JavaScript (Ajax).

preview_player
Показать описание
Hi, In this video you will learn how to integrate dependent or chained forms in Django.
In this case, I will be using a Country and City field, whereby the city that will be outputted will depend on the selected country.
So will be achieving this with Django and JavaScript(Ajax).

Web Hosting with Free Domain from Bluehost:

Support me on Patreon:
Рекомендации по теме
Комментарии
Автор

Thank you for the tutorial, it helped so much!!! I definitely wish you went into more detail at the end, specifically this line:
self.fields['city'].queryset =
It took me a while to figure out why that wasn't working. Other than that, awesome job!

briantxfazoli
Автор

This was so helpful! Thank you so much!

ashleydorr
Автор

Hi Clinton,
nice input as usual. Unless I missed it, I couldn't find the source code on your Github. I looked for it as you mentioned in your video that we could check more details on the source code.
Cheers,
JM

Herakles
Автор

can you add a search option incase you have a lot of countries

Kennerdoll
Автор

What to do when there's only one drop-down field. What to change in forms

KrimaTrivedi
Автор

great tutorials! how to make 3 chain dropdown list like country city and subcity? would you please make another tutorials for this 3

daekhamarbari
Автор

But from where do you get the cities an countries, do you declare them in a list somewhere?

fqty
Автор

thank you prof
please you can do this program by python
3 combobox 1 show contry second show city 3 show commun
thank you again

admed
Автор

NIce tutorial, but 'America' is a Continent, not a country.

Vanzo
join shbcf.ru