hi all,
i originally posted it in the jquery general mailing list, but it
occured to me this is actually a more suitable place. Do correct me if
i'm wrong.
I'm having an issue to attach the datePicker UI on a element that is
clone() .
I've set up a test bed here:
http://www.pixeline.be/youplaboum/ui.htmland the line of code:
$('#weekamount').bind("change", function(){
$weeks = $(this).val();
$('.newWeek').not('#templateWeekUI').remove();
for (i = 0; i < $weeks; i++) {
$('#templateWeekUI legend').text('Semaine ' + parseInt(i +
1));
// $('#templateWeekUI').clone(true).fadeIn("slow").attr('id',
'#templateUI' + i).appendTo('#addWeekUIholder').css({
$('#templateWeekUI').show().clone(true).attr('id',
'#templateWeekUI' + i).appendTo('#addWeekUIholder').css({
backgroundColor: "yellow"
}).animate({
backgroundColor: 'white'
}, 1000);
//$('#templateWeekUI' + i+" .isADate").datepicker();
}
});
Thanks for any insight!
Alexandre