SyntaxFix
Write A Post
Hire A Developer
Questions
Use the files filelist of the element instead of val()
files
val()
$("input[type=file]").on('change',function(){ alert(this.files[0].name); });