subtract dates using jquery date picker
Currently working on jquery clone and datepicker where it will calulate the dates and it will check the overlaping dates. But if the click the less button the code works perfectly it was removing the row but it was not detecting the dates which was there in the cloned div. For example when the user select the date
10-01-1990
&
10-01-1995
for this the total was
Total work experience 5 years 0 Months
& in the cloned div if the user gave
10-01-1996
&
10-01-2015
so the total was Total work experience 25 years 0 Months. If the user click the less button the cloned one will remove but the total year was not detecting.
Here is the jquery code