回答編集履歴
1
荒い点を修正
test
CHANGED
@@ -2,12 +2,12 @@
|
|
2
2
|
```JavaScript
|
3
3
|
$(function(){
|
4
4
|
let option = {
|
5
|
-
|
5
|
+
format: "yyyy年mm月dd日",
|
6
|
-
|
6
|
+
autoclose: true
|
7
7
|
};
|
8
8
|
$('.date').datepicker(option);
|
9
9
|
$('button').on('click',function(){
|
10
|
-
|
10
|
+
let cloneContents = $(".copy-parent").find(".copy-child:first").clone(false); // cloneの引数はfalse
|
11
11
|
cloneContents.appendTo(".copy-parent");
|
12
12
|
cloneContents.find(".date").datepicker(option);
|
13
13
|
});
|