I have the following input file tag:
<input type="file" id="handlerxhr1" />
In mozilla when I run the following jQuery code:
var input = $('#handlerxhr1')[0];
$('#upload').click(function() {
alert(input.files[0]);
});
I get response: [object File] (which is good).
But in IE I get 'input.files.0 is undefined'
What am I doing wrong?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…