Im displaying all the files from upfiles array using each loop in jquery,
CODE using each loop:
$(upfiles).each(function(index3, filelist) {
alert(filelist.name); //displays filename
alert(filelist.size); //displays filesize
}
how can I do the same thing using for loop or while loop :
// **CODE I have tried :**
var i;
for(i=0;i<=upfiles.length;i++)
{
alert(upfiles[i][name]); // trying this way but not displaying
}
alert(upfiles[i]["name"])oralert(upfiles[i].name)