67
rated 0 times
[
74]
[
7]
/ answers: 1 / hits: 22039
/ 11 Years ago, mon, july 1, 2013, 12:00:00
In my HTML i select multiple files.
<input type=file id=img multiple>
I want to store each element in an array so that i can print the file source.
I have done this in my javascript but it does not work.
function loadfiles()
{
var x=document.getElementById(img);
for (var i=0;i<x.length;i++)
{
document.write(x.elements[i].src);
}
}
More From » dom