I have a form wich dynamically creates a new row with a couple of form inputs. One of the inputs has a datepicker attached to it. I just managed with the help from here, to make this work. Except there is one problem left, as soon when i want to add options to the datepicker, it stops working...
Working fiddle: http://jsfiddle.net/HermesTrismegistus/Bt9eU/
And a not working fiddle: http://jsfiddle.net/HermesTrismegistus/TTNEP/
Its about this line:
$(".datepick").datepicker();
When i add the options to it.. It seems to stop functioning.
$(".datepick").datepicker("option", "dateFormat", "dd-mm-yy");
Does someone knows the solution to this?