You get a bonus - 1 coin for daily activity. Now you have 1 coin

how to find out the name of the file attached in an html input field javascript

Practice




how to find out the name of the file attached in an html input field javascript]



$(function() {
$("input:file").change(function (){
var fileName = $(this).val();
$(".filename").html(fileName);
});
});

Comments

To leave a comment

If you have any suggestion, idea, thanks or comment, feel free to write. We really value feedback and are glad to hear your opinion.
To reply

Lectures and tutorial on "Scripting client side JavaScript, jqvery, BackBone"

Terms: Scripting client side JavaScript, jqvery, BackBone