<div id="divAttachNew">
<label class="lblAutoWidth">
<span class="fa fa-paperclip"></span>
Attach New Files</label>
<span>(maximum file size: <?php echo $env['upload_size_mb']; ?> MB)</span>
<div id="divAttachFiles">
<input type="file" id="file[]" name="file[]" class="attachFile">
<input type="button" class="btnClearFile"
id="btnClearFile[]" name="btnClearFile[]" value="Clear File">
</div>
</div>
<div id="divAttachAdditional">
<span class="fa fa-plus-circle"></span>
<a id="aAddFiles">Attach Additional files</a>
</div>
$('#aAddFiles').on('click', function(e){
e.preventDefault();
$('#divAttachNew').append($('#divAttachFiles').clone());
});
$('.btnClearFile').on('click', function(){
console.log($(this));
});
Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.
”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.
Our community of experts have been thoroughly vetted for their expertise and industry experience.