質問編集履歴
1
javascriptのコードを付け足しました
test
CHANGED
File without changes
|
test
CHANGED
@@ -34,6 +34,22 @@
|
|
34
34
|
|
35
35
|
```javascript
|
36
36
|
|
37
|
+
$('#sns').on('change', function (e) {
|
38
|
+
|
39
|
+
var reader = new FileReader();
|
40
|
+
|
41
|
+
reader.onload = function (e) {
|
42
|
+
|
43
|
+
$("#output-message2").attr('src', e.target.result);
|
44
|
+
|
45
|
+
}
|
46
|
+
|
47
|
+
reader.readAsDataURL(e.target.files[0]);
|
48
|
+
|
49
|
+
});
|
50
|
+
|
51
|
+
|
52
|
+
|
37
53
|
$(document).on("click", ".add", function() {
|
38
54
|
|
39
55
|
$(this).parent().clone(true).insertAfter($(this).parent());
|