Hi,
I have 2 input fields and i am using it with a DatePicker like this
$("#depart, #return").datepicker({
showOn: 'both',
buttonImage: 'images/icon_calendar.gif',
buttonImageOnly: true,
numberOfMonths:2,
dateFormat: 'dd-mm-yy'
});
At some point i want to remove the return field and i am doing it with the .remove() method. Then using the .after method i'm adding again this field to the form. But the datepicker functionality is not available.
It makes sense, but i don't know how to re-assign a date picker to the newly created field?