Hi everyone, I'm working in a project where its required a dynamic insertion of a grup of 3 textfields where one hiels dates. So far I manage to do the insertion part, but Im still with the problem of jquery datepicker only working right on the first(original) textfield. I notice an error when inserting new textfield and trying to access the jquery datepicker "Uncaught TypeError: Cannot read property 'append' of undefined"!
I searched the web and i found that it can ve fixed by creating a class on the textfield and adding "'removeClass' or the 'not' ".
$('.datepicker').removeClass('hasDatepicker');
I tried both but nothing!
How can I resolve this? the id of the textfield its the same for the textfield that are created at the moment! Don't know what to do, but i will continue researching and if I can resolve it I will post here the solution for those with the same problem.