Emulate a file upload click in jQuery

后端 未结 4 1342
悲&欢浪女
悲&欢浪女 2020-12-17 00:55

I have an tag that I have bound a click event to in jQuery. When it is clicked I\'d like to have it emulate the click of a button on the file

4条回答
  •  庸人自扰
    2020-12-17 01:55

    The spec says it is supposed to work, and it does, on Chrome. However, Firefox and other common browsers don't follow the rules, so you're SOL.

提交回复
热议问题