I've seen several posts on this issue but none seem to resolve my problem.
It may simply be an incorrect implementation of the proposed solutions I have found.
- $(".add_row").live('click', function(){
- $('.row:last').clone(true).insertAfter(".row:last");
- $('.row:last').find("*:input").val("");//clear all inputs after clone
- $('.row:last').find('input.datepicker').removeClass('hasDatepicker').datepicker({ dateFormat: 'mm/dd/yy' });
The above code seems to bind a datepicker to the newly cloned datepicker element but when I select a date, the original date picker receives the value. I use class="datepicker" to call the datepicker.
Any help would be much appreciated.
Thanks in advance,
Twitch