const $ = require('jquery'); $( ".custom-file-input" ).change(function() { $(".custom-file-label").html(($(".custom-file-input").prop("files")[0]["name"])); });