質問編集履歴

1

ソースコード修正

2020/03/16 00:52

投稿

white_note
white_note

スコア8

test CHANGED
File without changes
test CHANGED
@@ -74,13 +74,9 @@
74
74
 
75
75
  <script type="text/javascript">
76
76
 
77
- $(document).ready(function(){
77
+ $('.custom-file-input').on('change',function(){
78
78
 
79
- $('#uploadfile').on('change',function(){
79
+ $(this).next('.custom-file-label').html($(this)[0].files[0].name);
80
-
81
- var file = this.files[0];
82
-
83
- });
84
80
 
85
81
  });
86
82