If i make my selection in State Dropdown list, i would the
City and ZipCode dropdown list to be automatically reupdated
based on the State i select.(This to avoid the user select a
City or Zipcode that does not correspond to the State
previously selected.)
Answer Posted / priti
Use AJAX for this problem. Create XMLHttpRequest and hit
server with parameter "state" get the City and Zipcode from
the database and return the output and fill in your City or
Zipcode variable.
Thanks.
| Is This Answer Correct ? | 5 Yes | 1 No |
Post New Answer View All Answers
Why json is used in php?
Is php better than python?
Explain about PHP filter and why it should be used?
What is a comment in php?
What is php artisan serve?
What is the purpose of the '.myd' file extension? What do thes file contain?
What is the default session time in php?
What is the meaning of php?
How to swap two variables without using 3rd temp variable.
How arrays are used in php?
What are the steps for the payment gateway processing?
Can we extend multiple classes in php?
When to use single quotes, double quotes, and backticks?
Why constructor is not overridden?
How to retrieve the original query string?