views:

111

answers:

0

I have managed to get multiple instances of a jQuery datepicker working fine using a commonly used technique (can't post link as only allowed 1 link as a new user)

The uploaded image probably explains better what I am trying to achieve, using the append function I'd like to duplicate a row (with all input fields for the new row blank) while setting a different id for the datepicker for each individual row, ideally increment the id by 1.

For instance, it would be 'datepicker1', 'datepicker2', 'datepicker3, and so on (for each time the 'Add another row' button is clicked)

Can anyone suggest the best way of going about this?!

Sample image