Here is what I wanna do and I basically would just like some ideas from someone more experienced that would help to get started in the right direction.
I have a custom post type (Exams) that has is supposed to have some custom location meta data.
The idea is that an exam can have one or more locations and I would like to know how to go about this best. The location consists of a name and some more detailed data (basically in a textarea).
I would like to have a single set of fields (name + description) with an add button beneath it, if a user clicks the add button the field is duplicated and one more location can be entered and so on.
The problem here is not how to do the actual duplicating and appending of the fields, I can handle that via jQuery, but how to handle and save the data on the backend. How should I name the fields and how can iterate over them and store them best, etc.