Html 'input = Multiple' Count Number Of Selected Files
I have a multiple file input like this: When I click it, I get the option to select some files. When I select some file
Solution 1:
try this:-
$("input[type='file']").on("change", function(){
var numFiles = $(this).get(0).files.length
alert(numFiles);
});
Solution 2:
$("input[type='file']").eq(0).files.length;
Post a Comment for "Html 'input = Multiple' Count Number Of Selected Files"