Rather than sending ajax every time handle it on frontend in javascript
On Mon, Oct 5, 2020, 13:35 Salima Begum <salima.b@rohteksolutions.com> 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 django-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAMSz6b%3DceNs7rk3zY4aNAS2MpUtAnamPi%2BzsfBx5maK9NZPo%2Bw%40mail.gmail.com.
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAOecAny6XS%2B7wrvTDbEDdVOwC76Umv02nQ4AxnDeEwXUAArMUA%40mail.gmail.com.
No comments:
Post a Comment