Created
May 24, 2017 08:02
-
-
Save Krasnov8953/184662ac1278c7971986c02c95f4bfff to your computer and use it in GitHub Desktop.
input type file appned filename to custom div
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$('input[type="file"]').on('change', function (event, files, label) { | |
var file_name = this.value.replace(/\\/g, '/').replace(/.*\//, '') | |
$('.filename').text(file_name); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment