Re: How to create Dependent Dropdown for state and city?
I already implemented this functionality many times on sugar, and basicaly what I do is:
1. Create a java script function that read the current select option for "state".
2. Develop an external php page that returns a list of all cities based in a state passed as paramenter.
3. Develop a javascript function that access this external page passing as parameter the value of selected state, and also update the cities list.
4. Assign the function developed on step 3 to the onchange event of state field.
Rafael Queiroz Gonçalves
Advanced OMG UML Certified Professional
Sun Certified Enterprise Architect for the Java Platform
Sun Certified Programmer for the Java 2 Platform
IBM Certified Advanced Application Developer - Lotus Notes and Domino
IBM Certified Application Developer - IBM WebSphere Portlet Factory
Computer Science Mastering / UFSC - PPGCC
Bookmarks