开发者

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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜