Disable submit button on error validating input file when using krajee file input plugin
I am using plugins.krajee.com/file-input
, and I cannot find a way to disable the Upload or Submit button on my form when a validation error has occurred eg minImageWidth
.
$('.file').fileinput({
language: 'en',
showUpload: false,
allowedFileExtensions : ['jpg', 'png','gif'],
maxFileSize:1024,
minImageWidth:286,
minImageHeight:322
});
How to use $('.file').fileinput('disable');
when minimum image width parameter returns validation error?
+3
source to share
No one has answered this question yet
Check out similar questions: