我想检查用户是否使用dropzone js和jquery vaalidation插件上传图片。
Dropzone div:
<div class="photoimageUpload dropzone" id="photoimageUpload" role="form" method="post" action="PHP/photo_upload/photo_imageUploader.php" enctype="multipart/form-data"></div>
$("#photo_form").validate({
rules: {
photoimageUpload: {
required: true
},
// ...
该div位于一个带有提交按钮的表单中:
<input type="submit" value="Confirm" class="btn btn-outline-secondary hvr-underline-from-center" name="btn" id="btn">