jquery函数多个上传字段单独添加 [英] Jquery function multiple upload fields add indivdually

查看:180
本文介绍了jquery函数多个上传字段单独添加的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个联系表格,我已经使用wordpress的联系表格7建立了联系表格。我想知道的是,如果有一个函数,当用户点击一个添加按钮,一个新的文件上传选项出现,所以他们可以有最多5个文件上传领域,但1最初显示,然后他们添加另一个,因为他们需要它。



我发现这个: http://kg69design.com/multiple-files-uploading-cf7.html ,但我似乎无法得到它的工作



任何帮助谢谢

解决方案


  1. 转到插件并从插件中选择联系人7。
  2. 转到modules文件夹。
  3. 找到 file.php
  4. / strong>,然后在任何编辑器中打开它。
  5. 复制并粘贴下面的第45行代码片段。现在可以在您的联系表单中找到。

$ atts ['multiple'] = true;


I have a contact form that I have set up using contact form 7 for wordpress. What I would like to know is if there is a function that when the user clicks on an add button a new file upload option appears so they can have a maximum of 5 file upload fields but 1 shows initially and then they add another one as they need it.

I found this: http://kg69design.com/multiple-files-uploading-cf7.html but I can't seem to get it to work

any help would be appreciated.

thanks

解决方案

  1. Go to the plugin and select contact 7 from plugin.
  2. Go to the modules folder.
  3. Find the file.php and open it in any editor.
  4. Copy and paste the below code snippet in line number 45.
  5. Multiple file select and upload in now available in your contact form.

$atts['multiple'] = true;

这篇关于jquery函数多个上传字段单独添加的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆