I have 3 Dropdowns in my form for city, state and country. City and State are dependent on Country. There is no relation between city and State. Each one has their own model. City has FK as country_id and also State model has FK as country_id.
So when I select country, I want that my city and state dropdowns are loaded with appropriate values with AJAX call. I know how to load one dropdown from another dropdown. But here I want to load 2 dropdowns(city and state) from single Dropdown (country).
For single dropdown take reference from below link :
Hi, what dragan told you is perfect. I just wanted to add this code taken from a post by our friend Christian Salazar. I don’t remenber if I made some changes but is his post not mine. I hope can be helpfull to you. Just change from 2 boxes to 3 or 4 or any number you wanna manage… It’s original spanish if you dont get any of this tell me I translate it and send it back… Good luck bro…