Am working on project in which i have a registration form for users, there are two drop down menus , one for selecting state, and other for cities(districts), I have two tables in my database called states and districts, and the dropdowns should be dynamic.
what i need is when i select a particular state, the corresponding districts should be there in the second dropdown.
in database in district table i have Stateid as foreign key
please help me.
thank u .