You could use a dictionary with cities as keys and in first drop down get keys 
and an if condition for second where it checks first for city if nothing 
selected then make second disable

Sent from my iPhone

> On May 10, 2019, at 07:35, avdesh sharma <avdeshsharma...@gmail.com> wrote:
> 
> Hi Django Users,
> 
> 
> I have a registration form in which I wanted to enter only Indian Cities in 
> one fields as a dropdown and their respective states in another field 
> dropdown.
> Could you please help me and provide me step by step guidance how to achieve 
> that as I am an intermediate level programmer.
> 
> 
> Thanks in advance !
> 
> -- 
> Warm Regards,
> Avdesh Kumar Sharma
> 9650031844
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to django-users+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at https://groups.google.com/group/django-users.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/django-users/CAF5Nfo4c8%2Bcj6yDzOE9eAWqoRH_7OA5TUo14FL9SEZhJem%2BXuA%40mail.gmail.com.
> For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/7EA1C65E-3786-4A9F-962F-6B1B6DECFB9D%40gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to