Hi, Check this. This may be useful for you.
All the best https://www.youtube.com/results?search_query=django+dependent+drop+down+list+from+database On Mon, Oct 5, 2020 at 1:56 PM Kunal Solanke <[email protected]> wrote: > Rather than sending ajax every time handle it on frontend in javascript > > On Mon, Oct 5, 2020, 13:35 Salima Begum <[email protected]> > wrote: > >> Hi all, >> I have database of zip code for example, >> INSERT INTO pages_zip_code (id, zip, city, st) VALUES >> (1, '00501', 'Holtsville', 'NY'), >> (2, '00544', 'Holtsville', 'NY'), >> (3, '00601', 'Adjuntas', 'PR'), >> (4, '00602', 'Aguada', 'PR'), >> (5, '00603', 'Aguadilla', 'PR'), >> (6, '00604', 'Aguadilla', 'PR'), >> (7, '00605', 'Aguadilla', 'PR'), >> (8, '00606', 'Maricao', 'PR'), >> (9, '00610', 'Anasco', 'PR'), >> (10, '00611', 'Angeles', 'PR'), >> (11, '00612', 'Arecibo', 'PR'), >> (12, '00613', 'Arecibo', 'PR'), >> (13, '00614', 'Arecibo', 'PR'), >> (14, '00616', 'Bajadero', 'PR'), >> (15, '00617', 'Barceloneta', 'PR'), >> (16, '00622', 'Boqueron', 'PR'), >> (17, '00623', 'Cabo Rojo', 'PR'), >> (18, '00624', 'Penuelas', 'PR'), >> (19, '00627', 'Camuy', 'PR'); >> If user enters zipcode, Then state and city column should be auto fill by >> using database of zip code in django and jQuery . >> Please let me know how to do this. >> >> Thank You, >> ~Salima >> >> -- >> 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 [email protected]. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/django-users/CAMSz6b%3DceNs7rk3zY4aNAS2MpUtAnamPi%2BzsfBx5maK9NZPo%2Bw%40mail.gmail.com >> <https://groups.google.com/d/msgid/django-users/CAMSz6b%3DceNs7rk3zY4aNAS2MpUtAnamPi%2BzsfBx5maK9NZPo%2Bw%40mail.gmail.com?utm_medium=email&utm_source=footer> >> . >> > -- > 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 [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/django-users/CAOecAny6XS%2B7wrvTDbEDdVOwC76Umv02nQ4AxnDeEwXUAArMUA%40mail.gmail.com > <https://groups.google.com/d/msgid/django-users/CAOecAny6XS%2B7wrvTDbEDdVOwC76Umv02nQ4AxnDeEwXUAArMUA%40mail.gmail.com?utm_medium=email&utm_source=footer> > . > -- Thanks and Regards J. Ranga Bharath cell: 9110334114 -- 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAK5m316JmU0i_CkUMkUE93VwAN-cyTGSMAPBMxDg%2BJ6OcLSG-Q%40mail.gmail.com.

