There are three fields:

поле1 поле2 поле3 поле4 Добавить поле (кнопка) Скопировать (кнопка) 

enter image description here

field1 - data (info)

field2 is a date (just a date, for example, in the format 02/19/2015 and not in any way)

field3 - how many times you need to repeat the field!

field4 - how many days

Add field - when you click on this button, nothing is copied, just dynamically all fields are added to the form ( field1 , field2 , field3 , field4 and copy button).

Copy - when you click copy, the field 3 and field 4 fields are checked, and the field field 1 and field 2 are copied down below the field .

Another button Delete - deletes 1 element and all child (copied) elements of this field ...

And just as it is a miracle, then consider the post request?

So far, I could make (more precisely, remake myself) the dynamic addition of fields.

    1 answer 1

    Turnkey solution http://jsfiddle.net/zwxdd43v/4/

    As for processing on the server, the code needs to be wrapped in a form . Pay attention to the attributes of input . Format:

     table_data[%n][cell_name] где table_data - общий массив (на стороне сервера) [%n] - массив 0..n 
    • Thank you very much, your option is partially suitable (the point is there to copy the fields from the fields 3 and 4 when you click, that is, for example, there is the number 02/05/2015 in the field 3 we entered "2", and in the field 4 we entered 2 that is , and in field 4 you entered "5" it will repeat (copy this material) 2 times and by this date it will be incremented by 5 days in each field (sorry, the idea was not correct for the first time) PS if you do not mind, help - vupsen
    • For what you have already done, thank you so much! - vupsen pm
    • Build please your proposal correctly, with a clear sequence of thoughts. Out of the subtleties, I didn’t understand anything in the main question. Similarly, in the comment, I did not understand anything! - dakiesse
    • we have 4 fields the last two fields (fields numbered 3 and 4 are the number of repetitions and after how many days, respectively). For example, in the 2-field (date field, the date is entered) on 05/02/2015, in the 3rd field, the number of repetitions is entered 2, and in the field number 3 is entered after 5 days. That is, when you click the copy button, you must copy the fields down with the date increment +5 in each - vupsen
    • No one will help to the end? - vupsen