动态多文件附件

时间:2019-02-06 00:15:04

标签: html

我正在使用HTML输入多个属性来附加三个文件。现在,我要做的是附加三个文件后,它应该显示一个三个文件按钮,其中包括我附加到一个文件按钮中的文件。最好的方法是什么?提前致谢。

一个文件按钮:

<input type="file" name="files[]" />

三个文件按钮:

<!-- Attachment/ Form 1 -->
<div class="fieldwrapper">
    <div class="thefield">
        <label id="lblaf1" class="styled1">Attachment/ Form 1 :</label>
        <input type="file" id="AF1" name="AF1" />
    </div>
</div>

<!-- Attachment/ Form 2 -->
<div class="fieldwrapper">
    <div id="lblaf2" class="thefield">
        <label class="styled1">Attachment/ Form 2 :</label>
        <input type="file" id="AF2" name="AF2" />
    </div>
</div>

<!-- Attachment/ Form 3 -->
<div class="fieldwrapper">
    <div id="lblaf3" class="thefield">
        <label class="styled1"> Attachment/ Form 3 :</label>
        <input type="file" id="AF3" name="AF3" />
    </div>
</div>

0 个答案:

没有答案