Passing files browsed as argument
I have an upload button and four file upload controls linked to this single button. In the onbutton
click event I'm trying to run JavaScript code. Is there any way I can get the number of files browsed and p开发者_开发问答ass them as an argument in my JavaScript function?
Your file upload controls are pretty much like regular input fields. You can access them by ID in javascript and retrieve their value
and check whether or not it's an empty string
精彩评论