1. cloneField(that);This function is called when you click the "+" anchor. It simply clones its parent and appends the clone to the field container.

2. killField(that);This function is called when you click the "-" anchor. Once called it removes the parent from the field container.

3. concatValues(sep);This function you must call yourself. What it does is loops over all the fields and places the value in each field into a single string and returns it. sep is the separator for each value. If you want to separate each value by a line break you should call the function like this :

Just copy / past the HTML in this case ( no need to re-paste the script ) and change the id of the parent each time to something else. Then to get the values of the fields you'll have to use concatValues like this :

Code:

concatValues('\n', 'multi-fields');

The second argument ( 'multi-fields' ) is the id of the container that contains the fields.