Hi Guys

I have a dropdown of locations. On selection it loads the next dropdown with sub locations

The problem is these are linked together by a id

So when they are entered into the database, the sublocation goes in fine but in the location box it enters the id

How can i do it so that the location is entered into the database and not the id?