Creating and populating a select dynamically

DarkDominis

New Member
I have 2 tables, Provinces and Districts. I would like to populate a select field with options as District names based on which Province is chosen in another select. The Districts table has a ProvinceID field to reference which Province it belongs to. I know this is doable, I just can't figure it out. I also want to create and update the new Districts select without refreshing the page.UPDATE: I'm writing it in PHP and MySQL, using jQuery as sparingly as possible.
 
Back
Top