我正在将JQuery验证插件-https://jqueryvalidation.org/与Drag n Drop文件上传器插件https://css-tricks.com/drag-and-drop-file-uploading/结合使用。
请帮助我让验证器突出显示用户是否尚未提交文件。
相关的HTML在这里-
<div class="filearea1">
<div class="box" id="uploader1">
<input hidden="true" type="file" id="upload-file" name="upload-files[]" class="box__file" />
<div class="box__input2">
<label class="box__input3" for="upload-file">
<i class="fa fa-upload fa-2x"></i>
<span id="upload-filename"></span>
<span id="upload-filetip">
<span class="box__dragndrop" style="color: gray"> Drag File here (one only) .</span>
</span>
</label>
</div>
</div>