开发者

Passing files browsed as argument

开发者 https://www.devze.com 2022-12-12 05:42 出处:网络
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

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

精彩评论

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

关注公众号