I am trying to attach a calendar field to a dynamically added html code. Initially, the code shows 3 input fields (as shown in the "p_scents" div). When the "Add Another Employer" is clicked, it should generate another 3 inputs( as the ones above). It is working fine for me to generate the first 2 fields (without the calendar field), but when I add the calendar field, it is not working.

Code:
<h2><a href="#"
...